summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-16 14:17:57 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-16 14:18:02 +0100
commit28dfe215844fe33d425bda33c677a0fae835082b (patch)
tree6edff40efb5f4d1b51feab439c882bc2f2f682e9 /src/render/OpenGL.cpp
parentc86f06caa0be207882266947da67125177bba5af (diff)
blur: fixup optimization bool
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 139c5b3f..93bb774a 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -941,9 +941,8 @@ void CHyprOpenGLImpl::renderTextureWithBlur(const CTexture& tex, wlr_box* pBox,
wlr_region_scale(&inverseOpaque, &inverseOpaque, m_RenderData.pMonitor->scale);
// vvv TODO: layered blur fbs?
- const bool USENEWOPTIMIZE =
- (*PBLURNEWOPTIMIZE && !blockBlurOptimization && ((m_pCurrentWindow && !m_pCurrentWindow->m_bIsFloating) || *PBLURXRAY) &&
- m_RenderData.pCurrentMonData->blurFB.m_cTex.m_iTexID && (!m_pCurrentWindow || !g_pCompositor->isWorkspaceSpecial(m_pCurrentWindow->m_iWorkspaceID)));
+ const bool USENEWOPTIMIZE = (*PBLURNEWOPTIMIZE && !blockBlurOptimization && ((m_pCurrentWindow && !m_pCurrentWindow->m_bIsFloating) || *PBLURXRAY) &&
+ m_RenderData.pCurrentMonData->blurFB.m_cTex.m_iTexID);
CFramebuffer* POUTFB = nullptr;
if (!USENEWOPTIMIZE) {