Attempt to fix fullscreen problems on OSX

This commit is contained in:
UnknownShadow200 2019-06-05 23:28:12 +10:00
parent 599656db25
commit 3683f90b21

View File

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