diff options
| author | raysan5 <raysan5@gmail.com> | 2019-08-20 19:32:12 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2019-08-20 19:32:12 +0200 |
| commit | ef3b01dffc964c04b83d08211ff133e22af6059b (patch) | |
| tree | f32392654343806a08a6b35696bbabea47ee8901 /src | |
| parent | 2f42b0ce857ff07ad8a9b50e1a2c24bf0d8bf3c1 (diff) | |
| download | raylib-ef3b01dffc964c04b83d08211ff133e22af6059b.tar.gz raylib-ef3b01dffc964c04b83d08211ff133e22af6059b.zip | |
RPI: Corrected issue when creating 3d projection view
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |
