Skip to content

Commit 4ca9170

Browse files
authored
[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()
1 parent 7879775 commit 4ca9170

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/platforms/rcore_desktop_rgfw.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,11 @@ void SetWindowSize(int width, int height)
821821
CORE.Window.screen.height = height;
822822
}
823823

824+
if (!CORE.Window.usingFbo)
825+
{
826+
SetupViewport(CORE.Window.screen.width, CORE.Window.screen.height);
827+
}
828+
824829
RGFW_window_resize(platform.window, CORE.Window.screen.width, CORE.Window.screen.height);
825830
}
826831

0 commit comments

Comments
 (0)