From 2ea9457fc69c641c3bddc170559a0d07e92ffc64 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Dec 2012 21:10:15 +0300 Subject: Don't show incorrect warning message about OpenGL in Android version. --- src/gui/setup_video.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src') 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. -- cgit v1.2.3-70-g09d2