mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Corrected issue with matrix order multiplication #1054
This commit is contained in:
@ -1303,11 +1303,11 @@ void BeginMode2D(Camera2D camera)
|
|||||||
|
|
||||||
rlLoadIdentity(); // Reset current matrix (MODELVIEW)
|
rlLoadIdentity(); // Reset current matrix (MODELVIEW)
|
||||||
|
|
||||||
// Apply screen scaling if required
|
|
||||||
rlMultMatrixf(MatrixToFloat(screenScaling));
|
|
||||||
|
|
||||||
// Apply 2d camera transformation to modelview
|
// Apply 2d camera transformation to modelview
|
||||||
rlMultMatrixf(MatrixToFloat(GetCameraMatrix2D(camera)));
|
rlMultMatrixf(MatrixToFloat(GetCameraMatrix2D(camera)));
|
||||||
|
|
||||||
|
// Apply screen scaling if required
|
||||||
|
rlMultMatrixf(MatrixToFloat(screenScaling));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ends 2D mode with custom camera
|
// Ends 2D mode with custom camera
|
||||||
|
|||||||
Reference in New Issue
Block a user