aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2014-09-23 14:32:05 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2014-09-23 14:32:05 +0200
commit5fd4a228ade0918d00f3fe37227c827f0075b0f4 (patch)
tree361ca954e146e39bd4b2da3288caca781c427b04
parent2e4814b7a7f97a40f7c05f8969f2f2e4f394c5aa (diff)
downloadlinmath-5fd4a228ade0918d00f3fe37227c827f0075b0f4.tar.gz
linmath-5fd4a228ade0918d00f3fe37227c827f0075b0f4.tar.xz
linmath-5fd4a228ade0918d00f3fe37227c827f0075b0f4.zip
fixed an issue that popped up in StackOverflow, thanks @klueless
-rw-r--r--linmath.h6
1 files 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;