From a80a1c69f8a5f4db88ade16e3b9d53f7b648be47 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Oct 2012 17:11:06 +0300 Subject: Get from video detection texture compression and texture sampler modes. --- src/gui/setup_video.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index 5157f8e9f..35293fec4 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -50,6 +50,8 @@ #include "utils/gettext.h" +#include "test/testmain.h" + #include #include @@ -559,9 +561,14 @@ void Setup_Video::action(const gcn::ActionEvent &event) } else if (id == "detect") { - const int val = graphicsManager.startDetection(); - if (val >= 0 && val <= 2) - mOpenGLDropDown->setSelected(val); + TestMain *test = graphicsManager.startDetection(); + if (test) + { + const int val = test->getConfig().getValueInt("opengl", -1); + if (val >= 0 && val <= 2) + mOpenGLDropDown->setSelected(val); + delete test; + } } } -- cgit v1.2.3-70-g09d2