From c8e8070c029a781a6bca4d9a100731b0e94e15b3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 4 Nov 2016 20:36:47 +0100 Subject: [PATCH] Update matrix_4x4_translate --- libretro-common/gfx/math/matrix_4x4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-common/gfx/math/matrix_4x4.c b/libretro-common/gfx/math/matrix_4x4.c index 9b481c1ec0..b197af76b0 100644 --- a/libretro-common/gfx/math/matrix_4x4.c +++ b/libretro-common/gfx/math/matrix_4x4.c @@ -192,7 +192,7 @@ void matrix_4x4_scale(math_matrix_4x4 *out, float x, float y, void matrix_4x4_translate(math_matrix_4x4 *out, float x, float y, float z) { - MAT_ELEM_4X4(*out, 0, 0) = 0.0f; + MAT_ELEM_4X4(*out, 0, 0) = 1.0f; MAT_ELEM_4X4(*out, 0, 1) = 0.0f; MAT_ELEM_4X4(*out, 0, 2) = 0.0f; MAT_ELEM_4X4(*out, 0, 3) = x;