From 8e6ab562dd62383d191806e88548e89b4d0a9d65 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 25 May 2014 17:50:46 +0300 Subject: Add support for simple texture size detection. This test check from 1024 to max texture size reported by driver. --- src/gui/widgets/tabs/setup_video.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/tabs/setup_video.cpp') diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp index c72b4a3ed..f33f410aa 100644 --- a/src/gui/widgets/tabs/setup_video.cpp +++ b/src/gui/widgets/tabs/setup_video.cpp @@ -446,12 +446,15 @@ void Setup_Video::action(const ActionEvent &event) TestMain *test = graphicsManager.startDetection(); if (test) { - const int val = test->getConfig().getValueInt("opengl", -1); + Configuration &conf = test->getConfig(); + const int val = conf.getValueInt("opengl", -1); if (val >= 0 && static_cast(val) < sizeof(renderToIndex) / sizeof(int)) { mOpenGLDropDown->setSelected(renderToIndex[val]); } + config.setValue("textureSize", + conf.getValueInt("textureSize", 1024)); delete test; } } -- cgit v1.2.3-60-g2f50