- attempt to fix res changage in fullscreen

This commit is contained in:
SoftCoder
2015-10-04 13:30:17 -07:00
parent 5b9eccd10b
commit 32f3729f0a

View File

@@ -139,6 +139,13 @@ void PlatformContextGl::init(int colorBits, int depthBits, int stencilBits,
}
}
if(Window::getIsFullScreen()) {
SDL_SetWindowFullscreen(window,SDL_WINDOW_FULLSCREEN);
}
else {
SDL_SetWindowFullscreen(window,0);
}
if(glcontext == NULL) {
glcontext = SDL_GL_CreateContext(window);
}