RPI: Corrected issue when creating 3d projection view
This commit is contained in:
parent
2f42b0ce85
commit
ef3b01dffc
1 changed files with 3 additions and 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue