From 5fd4a228ade0918d00f3fe37227c827f0075b0f4 Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Tue, 23 Sep 2014 14:32:05 +0200 Subject: fixed an issue that popped up in StackOverflow, thanks @klueless --- linmath.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linmath.h b/linmath.h index 930ee10..d4237f5 100644 --- a/linmath.h +++ b/linmath.h @@ -532,9 +532,9 @@ static inline void mat4x4_from_quat(mat4x4 M, quat q) } static inline void mat4x4_mul_quat(mat4x4 R, mat4x4 M, quat q) { - quat_mul_vec3(R[0], M[0], q); - quat_mul_vec3(R[1], M[1], q); - quat_mul_vec3(R[2], M[2], q); + quat_mul_vec3(R[0], q, M[0]); + quat_mul_vec3(R[1], q, M[1]); + quat_mul_vec3(R[2], q, M[2]); R[3][0] = R[3][1] = R[3][2] = 0.f; R[3][3] = 1.f; -- cgit v1.2.3-54-g00ecf