mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 22:51:58 -07:00
Opengl: Fix forcefully setting missing time prop to final shader
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user