diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-15 00:51:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-15 00:51:06 +0300 |
commit | f5a8beab7116d7ac33dc5f506dba9a0f5913b440 (patch) | |
tree | ed1aa0e16499ef9cda180ad5d5f4e550f2cff291 /src | |
parent | 4d5842888ebd8a8da3fcbc94904116544f2e7de6 (diff) | |
download | manaverse-f5a8beab7116d7ac33dc5f506dba9a0f5913b440.tar.gz manaverse-f5a8beab7116d7ac33dc5f506dba9a0f5913b440.tar.bz2 manaverse-f5a8beab7116d7ac33dc5f506dba9a0f5913b440.tar.xz manaverse-f5a8beab7116d7ac33dc5f506dba9a0f5913b440.zip |
Enable OpenGL by default under Android.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 10 |
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); |