Skip to content
Permalink
Browse files

Attempt to fix fullscreen problems on OSX

  • Loading branch information...
UnknownShadow200 committed Jun 5, 2019
1 parent 599656d commit 3683f90b212961040bb2b4f245a12fd162cc11ef
Showing with 4 additions and 1 deletion.
  1. +4 −1 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);
}

/*########################################################################################################################*

0 comments on commit 3683f90

Please sign in to comment.
You can’t perform that action at this time.