summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-15 18:29:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-15 19:05:33 +0300
commit59321c4bac45456a141639ea371238823bd9f708 (patch)
tree39f32d768edab21de2e8aae6eb8fedce76e94415 /src
parentaca14d26b0d9b0eca4c4896c32996792e3eeb136 (diff)
downloadmanaverse-59321c4bac45456a141639ea371238823bd9f708.tar.gz
manaverse-59321c4bac45456a141639ea371238823bd9f708.tar.bz2
manaverse-59321c4bac45456a141639ea371238823bd9f708.tar.xz
manaverse-59321c4bac45456a141639ea371238823bd9f708.zip
Do not disable opengl in safe mode in Android and Mac OSX.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index b22ad5994..caa78b310 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -2295,7 +2295,14 @@ void Client::storeSafeParameters() const
{
// if video mode configured reset most settings to safe
config.setValue("hwaccel", false);
+
+#if defined(ANDROID)
+ config.setValue("opengl", 2);
+#elif defined(__APPLE__)
+ config.setValue("opengl", 1);
+#else
config.setValue("opengl", 0);
+#endif
config.setValue("altfpslimit", 3);
config.setValue("sound", false);
config.setValue("safemode", true);