diff options
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r-- | src/gui/setup_video.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index bc6245ebc..2ad2105cd 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -395,14 +395,15 @@ void Setup_Video::apply() config.setValue("screen", fullscreen); } - // OpenGL change - if (mOpenGLDropDown->getSelected() != mOpenGLEnabled) - { - int mode = mOpenGLDropDown->getSelected(); + int mode = mOpenGLDropDown->getSelected(); #ifdef ANDROID - if (mode == 1 || mode == 2) - mode = 3; + if (mode == 1 || mode == 2) + mode = 3; #endif + + // OpenGL change + if (mode != mOpenGLEnabled) + { config.setValue("opengl", mode); // OpenGL can currently only be changed by restarting, notify user. |