[rcore_rgfw] Updating render resolution as well on SetWindowSize

This commit is contained in:
criss 2026-03-31 20:49:40 +02:00
parent 78797757f0
commit 9ea2f3bf61

View File

@ -821,6 +821,12 @@ void SetWindowSize(int width, int height)
CORE.Window.screen.height = height;
}
if (!CORE.Window.usingFbo)
{
CORE.Window.render.width = CORE.Window.screen.width;
CORE.Window.render.height = CORE.Window.screen.height;
}
RGFW_window_resize(platform.window, CORE.Window.screen.width, CORE.Window.screen.height);
}