[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:
Krzysztof Szenk
2026-04-01 09:46:14 +02:00
committed by GitHub
parent 78797757f0
commit 4ca9170f5b

View File

@ -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);
}