diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-16 23:03:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-16 23:03:02 +0300 |
commit | 69c527de5717edc3c8faeb81fc03032f55e5f2f3 (patch) | |
tree | 20374e1fbf7f04611420f5f43e14150742041f0d /src/client.cpp | |
parent | 55b4f417e104d92a283ba166f310ca15fedd1f0f (diff) | |
download | manaverse-69c527de5717edc3c8faeb81fc03032f55e5f2f3.tar.gz manaverse-69c527de5717edc3c8faeb81fc03032f55e5f2f3.tar.bz2 manaverse-69c527de5717edc3c8faeb81fc03032f55e5f2f3.tar.xz manaverse-69c527de5717edc3c8faeb81fc03032f55e5f2f3.zip |
Dont run video mode detection on unit tests.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index bf1ccd3f5..b0e133ca1 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -347,8 +347,9 @@ void Client::gameInit() ConfigManager::checkConfigVersion(); logVars(); Cpu::detect(); -#if defined(USE_OPENGL) -#if !defined(ANDROID) && !defined(__APPLE__) && !defined(__native_client__) +#if defined(USE_OPENGL) +#if !defined(ANDROID) && !defined(__APPLE__) && \ +!defined(__native_client__) && !defined(UNITTESTS) if (!settings.options.safeMode && settings.options.test.empty() && !config.getBoolValue("videodetected")) |