From 69c527de5717edc3c8faeb81fc03032f55e5f2f3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Feb 2016 23:03:02 +0300 Subject: Dont run video mode detection on unit tests. --- src/client.cpp | 5 +++-- 1 file 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")) -- cgit v1.2.3-70-g09d2