diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-10 12:26:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-10 12:26:24 +0300 |
commit | 2c2d6c379cf994a61491983780edd3ab9852eaf4 (patch) | |
tree | 325ce57a61d900edb0c7554d96d36a2e65fbbcf0 /src | |
parent | 62a416d5585106c2ce8e2259036740e7ba2c70c7 (diff) | |
download | mv-2c2d6c379cf994a61491983780edd3ab9852eaf4.tar.gz mv-2c2d6c379cf994a61491983780edd3ab9852eaf4.tar.bz2 mv-2c2d6c379cf994a61491983780edd3ab9852eaf4.tar.xz mv-2c2d6c379cf994a61491983780edd3ab9852eaf4.zip |
Fix OpenGL renderers fallback.
If selected unsupported renderer, it must fallback to some supported.
Diffstat (limited to 'src')
-rw-r--r-- | src/graphicsmanager.cpp | 3 |
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(); |