Skip to content
Snippets Groups Projects
Commit be01ac2a authored by Merov Linden's avatar Merov Linden
Browse files

BUG-4185 : Fix glsl compilation error on Mac

parent f6c7b906
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,8 @@ mat4 getSkinnedTransform()
float x = fract(weight.x);
int i = int(floor(weight.x));
i = min(i, 15);
i = max(i, 0);
i = int(min(i, 15));
i = int(max(i, 0));
ret[0] = mix(matrixPalette[i+0], matrixPalette[i+1], x);
ret[1] = mix(matrixPalette[i+15],matrixPalette[i+16], x);
ret[2] = mix(matrixPalette[i+30],matrixPalette[i+31], x);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment