diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-18 01:45:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-18 01:45:42 +0300 |
commit | 0a602e0b62ee764cc1c1befdc75f2f4b875adc43 (patch) | |
tree | e5ed64532837b6a6d831404a51749f630b9f0e51 | |
parent | 2856e066d140c72c878805eb4ec961909551c1fb (diff) | |
download | plus-0a602e0b62ee764cc1c1befdc75f2f4b875adc43.tar.gz plus-0a602e0b62ee764cc1c1befdc75f2f4b875adc43.tar.bz2 plus-0a602e0b62ee764cc1c1befdc75f2f4b875adc43.tar.xz plus-0a602e0b62ee764cc1c1befdc75f2f4b875adc43.zip |
Fix best renderer detection at first start.
It was broken if best mode is modern OpenGL.
-rw-r--r-- | src/graphicsmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 81296b1cb..b5907d785 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -1272,7 +1272,7 @@ void GraphicsManager::detectVideoSettings() { const Configuration &conf = test->getConfig(); int val = conf.getValueInt("opengl", -1); - if (val >= 0 && val <= 2) + if (val >= 0 && val < static_cast<int>(RENDER_LAST)) { config.setValue("opengl", val); val = conf.getValue("useTextureSampler", -1); |