summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-09 21:10:15 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-09 21:10:15 +0300
commit2ea9457fc69c641c3bddc170559a0d07e92ffc64 (patch)
tree38b6e2383b49414c13c0d9ab5e5187aecf0b90d6 /src/gui/setup_video.cpp
parent351b7cf1ff682026485b0e7a8f7623fe356cdf84 (diff)
downloadplus-2ea9457fc69c641c3bddc170559a0d07e92ffc64.tar.gz
plus-2ea9457fc69c641c3bddc170559a0d07e92ffc64.tar.bz2
plus-2ea9457fc69c641c3bddc170559a0d07e92ffc64.tar.xz
plus-2ea9457fc69c641c3bddc170559a0d07e92ffc64.zip
Don't show incorrect warning message about OpenGL in Android version.
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp13
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.