From 812839461d0cfa95827c54d2e6607119e8b85f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1zaro=20Albuquerque?= <33807434+lzralbu@users.noreply.github.com> Date: Fri, 21 Jun 2024 22:26:57 -0400 Subject: [PATCH] Update rlgl.h --- src/rlgl.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/rlgl.h b/src/rlgl.h index 530e44efc..b53db0aaa 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -4251,13 +4251,7 @@ void rlSetVertexAttributeDefault(int locIndex, const void *value, int attribType void rlSetUniformMatrix(int locIndex, Matrix mat) { #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) - float matfloat[16] = { - mat.m0, mat.m1, mat.m2, mat.m3, - mat.m4, mat.m5, mat.m6, mat.m7, - mat.m8, mat.m9, mat.m10, mat.m11, - mat.m12, mat.m13, mat.m14, mat.m15 - }; - glUniformMatrix4fv(locIndex, 1, false, matfloat); + glUniformMatrix4fv(locIndex, 1, true, &mat.m0); #endif }