From ef3b01dffc964c04b83d08211ff133e22af6059b Mon Sep 17 00:00:00 2001 From: raysan5 Date: Tue, 20 Aug 2019 19:32:12 +0200 Subject: [PATCH] RPI: Corrected issue when creating 3d projection view --- src/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core.c b/src/core.c index d4df605f4..2e9bfb635 100644 --- a/src/core.c +++ b/src/core.c @@ -2507,9 +2507,6 @@ static bool InitGraphicsDevice(int width, int height) if (screenHeight <= 0) screenHeight = displayHeight; #endif // PLATFORM_DESKTOP - currentWidth = screenWidth; - currentHeight = screenHeight; - #if defined(PLATFORM_WEB) displayWidth = screenWidth; displayHeight = screenHeight; @@ -3040,6 +3037,9 @@ static bool InitGraphicsDevice(int width, int height) // Setup default viewport SetupViewport(fbWidth, fbHeight); + currentWidth = screenWidth; + currentHeight = screenHeight; + ClearBackground(RAYWHITE); // Default background color for raylib games :P #if defined(PLATFORM_ANDROID)