diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-12 15:22:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-12 16:10:30 +0300 |
commit | f07d919be74197a45f291d457ad44b872ce541de (patch) | |
tree | 2fda678f4cd2d1bb0a428fe225fa63adb59b1b6f /src/graphicsmanager.cpp | |
parent | 045180991b473e03e3283cc1a440dced876cf23a (diff) | |
download | manaverse-f07d919be74197a45f291d457ad44b872ce541de.tar.gz manaverse-f07d919be74197a45f291d457ad44b872ce541de.tar.bz2 manaverse-f07d919be74197a45f291d457ad44b872ce541de.tar.xz manaverse-f07d919be74197a45f291d457ad44b872ce541de.zip |
Fix render fallback. In nacl fallback to software mode.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index a5ae02872..d3b5a8c55 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -502,11 +502,12 @@ void GraphicsManager::initGraphics() // +++ here need check also not implimented gles flag if (!checkGLVersion(2, 0)) { - logger->log("Fallback to safe OpenGL mode"); - openGLMode = RENDER_SAFE_OPENGL; + logger->log("Fallback to software mode"); + openGLMode = RENDER_SOFTWARE; } } - if (openGLMode != oldOpenGLMode && !settings.options.test.empty()) + + if (openGLMode != oldOpenGLMode) { deleteRenderers(); settings.options.renderer = static_cast<int>(openGLMode); |