diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index c302b7e9..3a99d95f 100644 --- a/src/libui_sdl/main.cpp +++ b/src/libui_sdl/main.cpp @@ -1962,7 +1962,9 @@ void ApplyNewSettings(int type) if (type == 0) // 3D renderer settings { + if (Screen_UseGL) uiGLMakeContextCurrent(GLContext); GPU3D::UpdateRendererConfig(); + if (Screen_UseGL) uiGLMakeContextCurrent(NULL); GL_3DScale = Config::GL_ScaleFactor; // dorp GL_ScreenSizeDirty = true;