summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp6
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"));