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); }