From e9f7b4c64ea29c3ae2b8f7b7e1a151b14ba1034c Mon Sep 17 00:00:00 2001 From: Thompson Lee Date: Sun, 11 Sep 2016 17:18:59 -0400 Subject: [PATCH] FUUUUUUUU --- source/maths/mtx_diagonal.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/maths/mtx_diagonal.c b/source/maths/mtx_diagonal.c index 9b49899..9c94261 100644 --- a/source/maths/mtx_diagonal.c +++ b/source/maths/mtx_diagonal.c @@ -2,9 +2,9 @@ void Mtx_Diagonal(C3D_Mtx* out, float x, float y, float z, float w) { - Mtx_Identity(out); - FVec4_Scale(out->r[0], x); - FVec4_Scale(out->r[1], y); - FVec4_Scale(out->r[2], z); - FVec4_Scale(out->r[3], w); + Mtx_Zeros(out); + out->r[0].x = x; + out->r[1].y = y; + out->r[2].z = z; + out->r[3].w = w; }