aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 863e53fd..0fdb195a 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1254,6 +1254,10 @@ void EndTextureMode(void)
rlMatrixMode(RL_MODELVIEW); // Switch back to MODELVIEW matrix
rlLoadIdentity(); // Reset current matrix (MODELVIEW)
+
+ // Reset current screen size
+ currentWidth = GetScreenWidth();
+ currentHeight = GetScreenHeight();
}
// Returns a ray trace from mouse position