Corrected issue with matrix order multiplication #1054

This commit is contained in:
Ray 2020-01-27 16:32:28 +01:00
parent 4f7d090fb2
commit 98a7d35bab

View File

@ -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