summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-25 17:50:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-25 17:50:46 +0300
commit8e6ab562dd62383d191806e88548e89b4d0a9d65 (patch)
tree36fa576cdb6ff9aa950ec04165eab095f794f385 /src/gui/widgets
parente195e09e86d18c45676431813f98c56d85cc8201 (diff)
downloadmv-8e6ab562dd62383d191806e88548e89b4d0a9d65.tar.gz
mv-8e6ab562dd62383d191806e88548e89b4d0a9d65.tar.bz2
mv-8e6ab562dd62383d191806e88548e89b4d0a9d65.tar.xz
mv-8e6ab562dd62383d191806e88548e89b4d0a9d65.zip
Add support for simple texture size detection.
This test check from 1024 to max texture size reported by driver.
Diffstat (limited to 'src/gui/widgets')
-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;
}
}