From 53ae2b488db9f1c1ca767383f8411cc34222e42f Mon Sep 17 00:00:00 2001 From: Shariq Shah Date: Wed, 11 Nov 2015 16:03:50 +0500 Subject: [PATCH] Fixed minor bug in mat4_identity --- src/linmath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linmath.c b/src/linmath.c index 5be1cd0..f33d029 100644 --- a/src/linmath.c +++ b/src/linmath.c @@ -303,7 +303,7 @@ void vec4_transform_norm(vec4* res, const vec4* val, const mat4* mat) void mat4_identity(mat4* res) { memset(res->mat, 0, sizeof(float) * 16); - res->mat[0] = 0; res->mat[5] = 0; res->mat[10] = 0; res->mat[15] = 0; + res->mat[0] = res->mat[5] = res->mat[10] = res->mat[15] = 1.0f; } void mat4_mul(mat4* res, const mat4* mat1, const mat4* mat2)