Opengl: Fix forcefully setting missing time prop to final shader

This commit is contained in:
vaxerski 2023-03-06 19:02:08 +00:00
parent 4f647a8e8b
commit 0aeb61a95a

View file

@ -535,7 +535,7 @@ void CHyprOpenGLImpl::renderTextureInternalWithDamage(const CTexture& tex, wlr_b
if (usingFinalShader && g_pConfigManager->getInt("debug:damage_tracking") == 0) { if (usingFinalShader && g_pConfigManager->getInt("debug:damage_tracking") == 0) {
glUniform1f(shader->time, m_tGlobalTimer.getSeconds()); glUniform1f(shader->time, m_tGlobalTimer.getSeconds());
} else if (usingFinalShader) { } else if (usingFinalShader && shader->time > 0) {
// Don't let time be unitialised // Don't let time be unitialised
glUniform1f(shader->time, 0.f); glUniform1f(shader->time, 0.f);
} }