diff options
author | Arisotura <thetotalworm@gmail.com> | 2019-05-24 02:41:24 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2019-05-24 02:41:24 +0200 |
commit | 8a63c76f4face4bf717d646624d63eeb03c3849d (patch) | |
tree | d97ba2080d72ca8dc33d6d983c91896f8e8b6617 | |
parent | 9e2f47f4a0862e05f05cebbc5fae4e322c5b5d9f (diff) |
of course
I'm a complete and absolute fucking idiot
-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; |