diff options
author | JManch <[email protected]> | 2023-06-14 12:03:20 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-06-14 13:03:20 +0200 |
commit | 9a88c19f1ad2acad3cdfd2c81af6e40f2a0219b1 (patch) | |
tree | 8858e4a8f788104d47d5526becf24905fe52b71f /src/render/OpenGL.cpp | |
parent | 7762ac0173b860af83e58d56409f9cf0fa7252e9 (diff) | |
download | Hyprland-9a88c19f1ad2acad3cdfd2c81af6e40f2a0219b1.tar.gz Hyprland-9a88c19f1ad2acad3cdfd2c81af6e40f2a0219b1.zip |
screenshader: fix uniform variable checks (#2513)
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r-- | src/render/OpenGL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 477a0317..4599da52 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -604,12 +604,12 @@ void CHyprOpenGLImpl::renderTextureInternalWithDamage(const CTexture& tex, wlr_b if ((usingFinalShader && g_pConfigManager->getInt("debug:damage_tracking") == 0) || CRASHING) { glUniform1f(shader->time, m_tGlobalTimer.getSeconds()); - } else if (usingFinalShader && shader->time > 0) { + } else if (usingFinalShader && shader->time != -1) { // Don't let time be unitialised glUniform1f(shader->time, 0.f); } - if (usingFinalShader && shader->output > 0) + if (usingFinalShader && shader->output != -1) glUniform1i(shader->output, m_RenderData.pMonitor->ID); if (CRASHING) { |