Skip to content

Commit 3b96d92

Browse files
VReaperVillwieckz
authored andcommitted
Fix incorrect index in deform shader lookup
1 parent 30dcac4 commit 3b96d92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/engine/renderer/gl_shader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,8 @@ int GLShaderManager::GetDeformShaderIndex( deformStage_t *deforms, int numDeform
943943

944944
deformShaderCount++;
945945
_deformShaderLookup[steps] = deformShaderCount;
946+
} else {
947+
index--;
946948
}
947949

948950
return index;

0 commit comments

Comments
 (0)