summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-13 20:44:25 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-13 20:44:25 +0200
commitb9df76baf8ec7d853d81096fb33647bdec1f0106 (patch)
tree3dc9901185dcae34e276d681b75be830699a22c8
parent932ca64763d5133c4e5d8f6f6d7ed0d582d0456e (diff)
downloadmv-b9df76baf8ec7d853d81096fb33647bdec1f0106.tar.gz
mv-b9df76baf8ec7d853d81096fb33647bdec1f0106.tar.bz2
mv-b9df76baf8ec7d853d81096fb33647bdec1f0106.tar.xz
mv-b9df76baf8ec7d853d81096fb33647bdec1f0106.zip
Set by default opengl to safe opengl mode for windows players.
-rw-r--r--src/client.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 3c1c2054d..5f86ad4a3 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1428,8 +1428,10 @@ void Client::initConfiguration()
{
// Fill configuration with defaults
config.setValue("hwaccel", false);
-#if (defined __APPLE__ || defined WIN32) && defined USE_OPENGL
+#if (defined __APPLE__) && defined USE_OPENGL
config.setValue("opengl", 1);
+#elif (defined WIN32) && defined USE_OPENGL
+ config.setValue("opengl", 2);
#else
config.setValue("opengl", 0);
#endif