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 | |
parent | 045180991b473e03e3283cc1a440dced876cf23a (diff) | |
download | manaplus-f07d919be74197a45f291d457ad44b872ce541de.tar.gz manaplus-f07d919be74197a45f291d457ad44b872ce541de.tar.bz2 manaplus-f07d919be74197a45f291d457ad44b872ce541de.tar.xz manaplus-f07d919be74197a45f291d457ad44b872ce541de.zip |
Fix render fallback. In nacl fallback to software mode.
Diffstat (limited to 'src')
-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); |