mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-07 07:31:53 -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) {
|
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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user