diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-25 17:50:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-25 17:50:46 +0300 |
commit | 8e6ab562dd62383d191806e88548e89b4d0a9d65 (patch) | |
tree | 36fa576cdb6ff9aa950ec04165eab095f794f385 /src/gui/widgets | |
parent | e195e09e86d18c45676431813f98c56d85cc8201 (diff) | |
download | manaverse-8e6ab562dd62383d191806e88548e89b4d0a9d65.tar.gz manaverse-8e6ab562dd62383d191806e88548e89b4d0a9d65.tar.bz2 manaverse-8e6ab562dd62383d191806e88548e89b4d0a9d65.tar.xz manaverse-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.cpp | 5 |
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; } } |