diff options
-rw-r--r-- | src/libui_sdl/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index c302b7e..3a99d95 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; |