mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 06:01:17 +02:00
- attempt to fix res changage in fullscreen
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user