mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-10 01:09:10 -04:00
[rcore_rgfw] Updating render resolution as well on SetWindowSize (#5709)
* [rcore_rgfw] Updating render resolution as well on SetWindowSize * Actually, maybe even better call SetupViewport()
This commit is contained in:
@ -821,6 +821,11 @@ void SetWindowSize(int width, int height)
|
||||
CORE.Window.screen.height = height;
|
||||
}
|
||||
|
||||
if (!CORE.Window.usingFbo)
|
||||
{
|
||||
SetupViewport(CORE.Window.screen.width, CORE.Window.screen.height);
|
||||
}
|
||||
|
||||
RGFW_window_resize(platform.window, CORE.Window.screen.width, CORE.Window.screen.height);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user