From e911c444056b2572cc43519b410fb2f084836592 Mon Sep 17 00:00:00 2001 From: coco24 <1281299809@qq.com> Date: Wed, 24 Apr 2024 23:22:20 +0800 Subject: [PATCH] [rlgl] Fix incorrect matrix multiplication order in `rlMultMatrixf` --- src/rlgl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rlgl.h b/src/rlgl.h index 9477558c8..e03564cf3 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