diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-02-22 23:01:22 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-02-22 23:01:22 +0000 |
| commit | c353b7c4f75e53af006bc2cf686b02c9a6495b60 (patch) | |
| tree | 97cb637539775a4006dfc4d1720b8bdd1ff3f228 /src/render/Renderer.cpp | |
| parent | d9757b61bfb7dcfaf3d903092435a1aaff52b7ed (diff) | |
renderer: minor fixes for introspection detection
Diffstat (limited to 'src/render/Renderer.cpp')
| -rw-r--r-- | src/render/Renderer.cpp | 3 |
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"); |
