From 196cc38da19b867eaa9419343dd6ecd8212af354 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Oct 2012 19:48:26 +0300 Subject: Fix compilation errors and warnings in different modes. --- src/gui/setup_video.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/setup_video.cpp') 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() -- cgit v1.2.3-60-g2f50