summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-08 19:48:26 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-08 19:48:26 +0300
commit196cc38da19b867eaa9419343dd6ecd8212af354 (patch)
treeafb2d39f88c213702a339cae6fa08f8248b5c1af /src/gui/setup_video.cpp
parenta80a1c69f8a5f4db88ade16e3b9d53f7b648be47 (diff)
downloadmanaverse-196cc38da19b867eaa9419343dd6ecd8212af354.tar.gz
manaverse-196cc38da19b867eaa9419343dd6ecd8212af354.tar.bz2
manaverse-196cc38da19b867eaa9419343dd6ecd8212af354.tar.xz
manaverse-196cc38da19b867eaa9419343dd6ecd8212af354.zip
Fix compilation errors and warnings in different modes.
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 35293fec4..9c6b3f064 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -559,6 +559,7 @@ void Setup_Video::action(const gcn::ActionEvent &event)
{
config.setValue("noframe", mNoFrameCheckBox->isSelected());
}
+#ifdef USE_OPENGL
else if (id == "detect")
{
TestMain *test = graphicsManager.startDetection();
@@ -570,6 +571,7 @@ void Setup_Video::action(const gcn::ActionEvent &event)
delete test;
}
}
+#endif
}
void Setup_Video::externalUpdated()