summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorbohonghuang <[email protected]>2024-05-06 02:19:25 +0800
committerGitHub <[email protected]>2024-05-05 20:19:25 +0200
commit23385231c6c5ed6e9ace97e7305d3b7002c62171 (patch)
tree1e048f91f45389b081a8d58e42b34a63350e02ec /src
parent34d00d52177230cb3434240c263a0529aa0b4891 (diff)
downloadraylib-23385231c6c5ed6e9ace97e7305d3b7002c62171.tar.gz
raylib-23385231c6c5ed6e9ace97e7305d3b7002c62171.zip
[rlgl] Fix incorrect matrix multiplication order in `rlMultMatrixf` (#3935)
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h2
1 files changed, 1 insertions, 1 deletions
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