mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-16 06:55:58 +00:00
renderer: safeguard against non-sampleable currentFB in blurMainFb
fixes #8325
This commit is contained in:
@@ -97,12 +97,18 @@ void CFramebuffer::bind() {
|
||||
}
|
||||
|
||||
void CFramebuffer::release() {
|
||||
if (!m_iFbAllocated && !m_cTex)
|
||||
return;
|
||||
|
||||
Debug::log(TRACE, "fb {} released", m_iFb);
|
||||
|
||||
if (m_iFbAllocated)
|
||||
glDeleteFramebuffers(1, &m_iFb);
|
||||
|
||||
m_cTex.reset();
|
||||
m_iFbAllocated = false;
|
||||
m_vSize = Vector2D();
|
||||
m_iFb = 0;
|
||||
}
|
||||
|
||||
CFramebuffer::~CFramebuffer() {
|
||||
|
Reference in New Issue
Block a user