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); } /*########################################################################################################################*