From 98a7d35babbd89bc77d0b73f6655282d430725cf Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 27 Jan 2020 16:32:28 +0100 Subject: [PATCH] Corrected issue with matrix order multiplication #1054 --- src/core.c | 6 +++--- 1 file 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