summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/tabs/setup_video.cpp5
1 files changed, 4 insertions, 1 deletions
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<unsigned int>(val)
< sizeof(renderToIndex) / sizeof(int))
{
mOpenGLDropDown->setSelected(renderToIndex[val]);
}
+ config.setValue("textureSize",
+ conf.getValueInt("textureSize", 1024));
delete test;
}
}