From 23385231c6c5ed6e9ace97e7305d3b7002c62171 Mon Sep 17 00:00:00 2001 From: bohonghuang <1281299809@qq.com> Date: Mon, 6 May 2024 02:19:25 +0800 Subject: [PATCH] [rlgl] Fix incorrect matrix multiplication order in `rlMultMatrixf` (#3935) --- src/rlgl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rlgl.h b/src/rlgl.h index ae53b4ef..513dd3ed 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -1296,7 +1296,7 @@ void rlMultMatrixf(const float *matf) matf[2], matf[6], matf[10], matf[14], matf[3], matf[7], matf[11], matf[15] }; - *RLGL.State.currentMatrix = rlMatrixMultiply(*RLGL.State.currentMatrix, mat); + *RLGL.State.currentMatrix = rlMatrixMultiply(mat, *RLGL.State.currentMatrix); } // Multiply the current matrix by a perspective matrix generated by parameters