summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-10 12:26:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-10 12:26:24 +0300
commit2c2d6c379cf994a61491983780edd3ab9852eaf4 (patch)
tree325ce57a61d900edb0c7554d96d36a2e65fbbcf0
parent62a416d5585106c2ce8e2259036740e7ba2c70c7 (diff)
downloadmanaverse-2c2d6c379cf994a61491983780edd3ab9852eaf4.tar.gz
manaverse-2c2d6c379cf994a61491983780edd3ab9852eaf4.tar.bz2
manaverse-2c2d6c379cf994a61491983780edd3ab9852eaf4.tar.xz
manaverse-2c2d6c379cf994a61491983780edd3ab9852eaf4.zip
Fix OpenGL renderers fallback.
If selected unsupported renderer, it must fallback to some supported.
-rw-r--r--src/graphicsmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 10eaea9ab..8af549e96 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -478,7 +478,8 @@ void GraphicsManager::initGraphics()
if (openGLMode != oldOpenGLMode)
{
deleteRenderers();
- config.setValue("opengl", static_cast<int>(openGLMode));
+ settings.options.renderer = static_cast<int>(openGLMode);
+ config.setValue("opengl", settings.options.renderer);
createRenderers();
detectPixelSize();
setVideoMode();