summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rendering.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rendering.c b/src/rendering.c
index c4d71d8..dceacc4 100644
--- a/src/rendering.c
+++ b/src/rendering.c
@@ -636,7 +636,7 @@ void r_draw_model(void *restrict context, RenderTargets *restrict t, u32 framebu
model[3][2] = pos[2];
// modelviewprojection = p * view * model
- glm_mat4_mul(model, camera_matrix, modelviewprojection);
+ glm_mat4_mul(camera_matrix, model, modelviewprojection);
// TODO: Do this only once during initialization
gl->UniformMatrix4fv(o->mvp, 1, GL_FALSE, &modelviewprojection[0][0]);