summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index f1e13b74b..36ccdc045 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -48,9 +48,13 @@ GraphicsManager::~GraphicsManager()
bool GraphicsManager::startDetection()
{
+#ifdef USE_OPENGL
TestMain *test = new TestMain();
test->exec(false);
return test->getConfig().getValueInt("opengl", -1);
+#else
+ return 0;
+#endif
}
bool GraphicsManager::detectGraphics()