mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Fix incomplete initialization of a matrix in linmath.h
Introduced by a28236d939
.
This commit is contained in:
parent
f4c5e6568e
commit
383e3f989d
10
deps/linmath.h
vendored
10
deps/linmath.h
vendored
@ -197,12 +197,10 @@ static inline void mat4x4_rotate(mat4x4 R, mat4x4 M, float x, float y, float z,
|
||||
vec3_norm(u, u);
|
||||
mat4x4_from_vec3_mul_outer(T, u, u);
|
||||
|
||||
S[1][2] = u[0];
|
||||
S[2][1] = -u[0];
|
||||
S[2][0] = u[1];
|
||||
S[0][2] = -u[1];
|
||||
S[0][1] = u[2];
|
||||
S[1][0] = -u[2];
|
||||
S[0][0]= 0.f; S[0][1]= u[2]; S[0][2]= -u[1]; S[0][3]= 0.f;
|
||||
S[1][0]= -u[2]; S[1][1]= 0.f; S[1][2]= u[0]; S[1][3]= 0.f;
|
||||
S[2][0]= u[1]; S[2][1]= -u[0]; S[2][2]= 0.f; S[2][3]= 0.f;
|
||||
S[3][0]= 0.f; S[3][1]= 0.f; S[3][2]= 0.f; S[3][3]= 0.f;
|
||||
|
||||
mat4x4_scale(S, S, s);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user