diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-10 16:46:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-10 16:46:55 +0300 |
commit | 608dfae22e1b5145210314ca6c7268420dd639c8 (patch) | |
tree | 5f7317be7e895a1f8aede182ea69ef56d456c54f /src/graphicsmanager.cpp | |
parent | 9eb389060d44672c311a36348036eab297859e7e (diff) | |
download | plus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.gz plus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.bz2 plus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.xz plus-608dfae22e1b5145210314ca6c7268420dd639c8.zip |
Fix some issues found by automatic checks.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index b8383076d..3508f335b 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -526,9 +526,11 @@ void GraphicsManager::initGraphics() SafeOpenGLImageHelper::setBlur(config.getBoolValue("blur")); #endif // ANDROID SurfaceImageHelper::SDLSetEnableAlphaCache( - config.getBoolValue("alphaCache") && !openGLMode); + config.getBoolValue("alphaCache") && + openGLMode == RenderType::RENDER_SOFTWARE); ImageHelper::setEnableAlpha((config.getFloatValue("guialpha") != 1.0F || - openGLMode) && config.getBoolValue("enableGuiOpacity")); + openGLMode != RenderType::RENDER_SOFTWARE) && + config.getBoolValue("enableGuiOpacity")); #else // USE_OPENGL SurfaceImageHelper::SDLSetEnableAlphaCache( config.getBoolValue("alphaCache")); |