From 3683f90b212961040bb2b4f245a12fd162cc11ef Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 5 Jun 2019 23:28:12 +1000 Subject: [PATCH] Attempt to fix fullscreen problems on OSX --- src/Graphics.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Graphics.c b/src/Graphics.c index 349e8be96..0c6906d90 100644 --- a/src/Graphics.c +++ b/src/Graphics.c @@ -1342,8 +1342,11 @@ void Gfx_EndFrame(void) { } void Gfx_OnWindowResize(void) { - glViewport(0, 0, Game.Width, Game.Height); GLContext_Update(); + /* In case GLContext_Update changes window bounds */ + /* TODO: Eliminate this nasty hack.. */ + Game_UpdateDimensions(); + glViewport(0, 0, Game.Width, Game.Height); } /*########################################################################################################################*