mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:45:58 +01:00
Opengl: Fix forcefully setting missing time prop to final shader
This commit is contained in:
parent
4f647a8e8b
commit
0aeb61a95a
1 changed files with 1 additions and 1 deletions
|
@ -535,7 +535,7 @@ void CHyprOpenGLImpl::renderTextureInternalWithDamage(const CTexture& tex, wlr_b
|
|||
|
||||
if (usingFinalShader && g_pConfigManager->getInt("debug:damage_tracking") == 0) {
|
||||
glUniform1f(shader->time, m_tGlobalTimer.getSeconds());
|
||||
} else if (usingFinalShader) {
|
||||
} else if (usingFinalShader && shader->time > 0) {
|
||||
// Don't let time be unitialised
|
||||
glUniform1f(shader->time, 0.f);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue