summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-11-15 00:51:06 +0300
committerAndrei Karas <akaras@inbox.ru>2012-11-15 00:51:06 +0300
commitf5a8beab7116d7ac33dc5f506dba9a0f5913b440 (patch)
treeed1aa0e16499ef9cda180ad5d5f4e550f2cff291 /src
parent4d5842888ebd8a8da3fcbc94904116544f2e7de6 (diff)
downloadmv-f5a8beab7116d7ac33dc5f506dba9a0f5913b440.tar.gz
mv-f5a8beab7116d7ac33dc5f506dba9a0f5913b440.tar.bz2
mv-f5a8beab7116d7ac33dc5f506dba9a0f5913b440.tar.xz
mv-f5a8beab7116d7ac33dc5f506dba9a0f5913b440.zip
Enable OpenGL by default under Android.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 338a474c1..38e30b22f 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1927,13 +1927,19 @@ void Client::initConfiguration() const
// Fill configuration with defaults
config.setValue("hwaccel", false);
-#if (defined __APPLE__) && defined USE_OPENGL
+#ifdef USE_OPENGL
+#if (defined __APPLE__)
config.setValue("opengl", 1);
-#elif (defined WIN32) && defined USE_OPENGL
+#elif (defined ANDROID)
+ config.setValue("opengl", 3);
+#elif (defined WIN32)
config.setValue("opengl", 2);
#else
config.setValue("opengl", 0);
#endif
+#else
+ config.setValue("opengl", 0);
+#endif
config.setValue("screen", false);
config.setValue("sound", true);
config.setValue("guialpha", 0.8f);