Skip to content

Commit 98a7d35

Browse files
committed
Corrected issue with matrix order multiplication #1054
1 parent 4f7d090 commit 98a7d35

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,11 +1303,11 @@ void BeginMode2D(Camera2D camera)
13031303

13041304
rlLoadIdentity(); // Reset current matrix (MODELVIEW)
13051305

1306-
// Apply screen scaling if required
1307-
rlMultMatrixf(MatrixToFloat(screenScaling));
1308-
13091306
// Apply 2d camera transformation to modelview
13101307
rlMultMatrixf(MatrixToFloat(GetCameraMatrix2D(camera)));
1308+
1309+
// Apply screen scaling if required
1310+
rlMultMatrixf(MatrixToFloat(screenScaling));
13111311
}
13121312

13131313
// Ends 2D mode with custom camera

0 commit comments

Comments
 (0)