From 32f3729f0ab42f142fb82a5d735e1ab96609d8b9 Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Sun, 4 Oct 2015 13:30:17 -0700 Subject: [PATCH] - attempt to fix res changage in fullscreen --- source/shared_lib/sources/platform/sdl/gl_wrap.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/shared_lib/sources/platform/sdl/gl_wrap.cpp b/source/shared_lib/sources/platform/sdl/gl_wrap.cpp index a03642ffe..3250e1a14 100644 --- a/source/shared_lib/sources/platform/sdl/gl_wrap.cpp +++ b/source/shared_lib/sources/platform/sdl/gl_wrap.cpp @@ -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); }