summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);