Skip to content

Commit

Permalink
[rend2] Fix shaders with time offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
SomaZ committed Apr 29, 2024
1 parent 8fc4b24 commit e656514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/rd-rend2/tr_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2520,7 +2520,7 @@ static void ComputeDeformValues(

void RB_AddShaderToShaderInstanceUBO(shader_t *shader)
{
if (shader->numDeforms != 1 && !shader->portalRange)
if (shader->numDeforms != 1 && !shader->portalRange && !shader->timeOffset)
{
shader->ShaderInstanceUboOffset = -1;
return;
Expand Down

0 comments on commit e656514

Please sign in to comment.