Fix negative integer modulo issue with animation.

This commit is contained in:
IntegratedQuantum 2023-01-05 14:20:54 +01:00
parent e9372da52d
commit d9b81b91f8

View File

@ -446,7 +446,7 @@ pub const meshing = struct {
c.glUniform3f(uniforms.ambientLight, ambient[0], ambient[1], ambient[2]);
c.glUniform1i(uniforms.time, @bitCast(i32, time));
c.glUniform1i(uniforms.time, @truncate(u31, time));
c.glBindVertexArray(vao);
}