summaryrefslogtreecommitdiff
path: root/src/render/Renderer.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-22 23:01:22 +0000
committerVaxry <vaxry@vaxry.net>2024-02-22 23:01:22 +0000
commitc353b7c4f75e53af006bc2cf686b02c9a6495b60 (patch)
tree97cb637539775a4006dfc4d1720b8bdd1ff3f228 /src/render/Renderer.cpp
parentd9757b61bfb7dcfaf3d903092435a1aaff52b7ed (diff)
renderer: minor fixes for introspection detection
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r--src/render/Renderer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 235c3f6f..2aa84a56 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -1141,7 +1141,8 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
static auto* const PBLURENABLED = (Hyprlang::INT* const*)g_pConfigManager->getConfigValuePtr("decoration:blur:enabled");
// if we use blur we need to expand the damage for proper blurring
- if (**PBLURENABLED == 1) {
+ // if framebuffer was not offloaded we're not doing introspection aka not blurring so this is redundant and dumb
+ if (**PBLURENABLED == 1 && g_pHyprOpenGL->m_bOffloadedFramebuffer) {
// TODO: can this be optimized?
static auto* const PBLURSIZE = (Hyprlang::INT* const*)g_pConfigManager->getConfigValuePtr("decoration:blur:size");
static auto* const PBLURPASSES = (Hyprlang::INT* const*)g_pConfigManager->getConfigValuePtr("decoration:blur:passes");