Android fix

This commit is contained in:
Henrik Rydgård 2022-11-06 20:01:22 +01:00
parent 9518aa0900
commit 69941c0d72

View file

@ -1265,7 +1265,7 @@ static void ConvertBlendState(GenericBlendState &blendState, bool forceReplaceBl
// Some Android devices (especially old Mali, it seems) composite badly if there's alpha in the backbuffer.
// So in non-buffered rendering, we will simply consider the dest alpha to be zero in blending equations.
#ifdef __ANDROID__
if (g_Config.iRenderingMode == FB_NON_BUFFERED_MODE) {
if (g_Config.bSkipBufferEffects) {
if (glBlendFuncA == BlendFactor::DST_ALPHA) glBlendFuncA = BlendFactor::ZERO;
if (glBlendFuncB == BlendFactor::DST_ALPHA) glBlendFuncB = BlendFactor::ZERO;
if (glBlendFuncA == BlendFactor::ONE_MINUS_DST_ALPHA) glBlendFuncA = BlendFactor::ONE;