mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-22 18:28:52 -05:00
Fix matrix not being fully initialized
Regression introduced with a28236d939
and found by @cher-nov.
Closes #937.
This commit is contained in:
parent
f4c5e6568e
commit
2037b5ce39
2
deps/linmath.h
vendored
2
deps/linmath.h
vendored
|
@ -192,7 +192,7 @@ static inline void mat4x4_rotate(mat4x4 R, mat4x4 M, float x, float y, float z,
|
|||
vec3 u = {x, y, z};
|
||||
|
||||
if(vec3_len(u) > 1e-4) {
|
||||
mat4x4 T, C, S;
|
||||
mat4x4 T, C, S = {0};
|
||||
|
||||
vec3_norm(u, u);
|
||||
mat4x4_from_vec3_mul_outer(T, u, u);
|
||||
|
|
Loading…
Reference in New Issue
Block a user