From 20525907d9278787c2645ef5a2913f8275c310d8 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Sun, 30 Oct 2016 17:17:29 +0200 Subject: [PATCH] fix axis rotations --- include/cglm-affine.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/cglm-affine.h b/include/cglm-affine.h index 8e21d82..7314ee2 100644 --- a/include/cglm-affine.h +++ b/include/cglm-affine.h @@ -161,7 +161,7 @@ glm_rotate_x(mat4 m, float rad, mat4 dest) { t[2][1] = -sinVal; t[2][2] = cosVal; - glm_mat4_mul(t, m, dest); + glm_mat4_mul(m, t, dest); } CGLM_INLINE @@ -179,7 +179,7 @@ glm_rotate_y(mat4 m, float rad, mat4 dest) { t[2][0] = sinVal; t[2][2] = cosVal; - glm_mat4_mul(t, m, dest); + glm_mat4_mul(m, t, dest); } CGLM_INLINE @@ -197,7 +197,7 @@ glm_rotate_z(mat4 m, float rad, mat4 dest) { t[1][0] = -sinVal; t[1][1] = cosVal; - glm_mat4_mul(t, m, dest); + glm_mat4_mul(m, t, dest); } CGLM_INLINE