summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2020-01-27 16:32:28 +0100
committerRay <[email protected]>2020-01-27 16:32:28 +0100
commit98a7d35babbd89bc77d0b73f6655282d430725cf (patch)
treeccf508bb1935d5b8c3acd93cbf2f37dcedf25308 /src/core.c
parent4f7d090fb2f639a9b68378e7250fc159a43acd8d (diff)
downloadraylib-98a7d35babbd89bc77d0b73f6655282d430725cf.tar.gz
raylib-98a7d35babbd89bc77d0b73f6655282d430725cf.zip
Corrected issue with matrix order multiplication #1054
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index 2eecc1f7..32b89236 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1303,11 +1303,11 @@ void BeginMode2D(Camera2D camera)
rlLoadIdentity(); // Reset current matrix (MODELVIEW)
- // Apply screen scaling if required
- rlMultMatrixf(MatrixToFloat(screenScaling));
-
// Apply 2d camera transformation to modelview
rlMultMatrixf(MatrixToFloat(GetCameraMatrix2D(camera)));
+
+ // Apply screen scaling if required
+ rlMultMatrixf(MatrixToFloat(screenScaling));
}
// Ends 2D mode with custom camera