From c97fd9afcfc6a983bddf0885a0e6b6553cd094d4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 22 Apr 2017 10:23:04 +0200 Subject: [PATCH] Correct matrix_4x4_lookat --- libretro-common/include/gfx/math/matrix_4x4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-common/include/gfx/math/matrix_4x4.h b/libretro-common/include/gfx/math/matrix_4x4.h index 33c80a39d0..ee8b87a9c4 100644 --- a/libretro-common/include/gfx/math/matrix_4x4.h +++ b/libretro-common/include/gfx/math/matrix_4x4.h @@ -232,7 +232,7 @@ typedef struct math_matrix_4x4 MAT_ELEM_4X4(out, 2, 3) = 0.0f; \ MAT_ELEM_4X4(out, 3, 0) = -(xaxis[0] * eye[0] + xaxis[1] * eye[1] + xaxis[2] * eye[2]); \ MAT_ELEM_4X4(out, 3, 1) = -(yaxis[0] * eye[0] + yaxis[1] * eye[1] + yaxis[2] * eye[2]); \ - MAT_ELEM_4X4(out, 3, 2) = -(zaxis[0] * eye[0] + zaxis[1] * eye[1] + zaxis[2] * eye[2]); \ + MAT_ELEM_4X4(out, 3, 2) = (zaxis[0] * eye[0] + zaxis[1] * eye[1] + zaxis[2] * eye[2]); \ MAT_ELEM_4X4(out, 3, 3) = 1.f; \ }