Skip to content

Commit ce8ac15

Browse files
Fix shader compilation on Nvidia GPUs
1 parent fb7fcde commit ce8ac15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Quake/gl_shaders.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ ALIAS_INSTANCE_BUFFER
11051105
"\n"
11061106
" PoseVertex GetPoseVertex (uint pose)\n"
11071107
" {\n"
1108-
" uint safePose = clamp(pose, 0, u_numPoses - 1);\n"
1108+
" uint safePose = clamp(pose, 0u, uint(u_numPoses - 1));\n"
11091109
"\n"
11101110
" int index = int(safePose) * u_numVerts + gl_VertexID;\n"
11111111
" uvec2 data = PackedPosNor[index];\n"

0 commit comments

Comments
 (0)