From d1f054e033eae4e1e771a04fcedfbcef1d538494 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Wed, 4 Dec 2013 13:17:41 +0100 Subject: [PATCH] Wait, we're not in clear mode there so no need to check. --- GPU/GLES/StateMapping.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index 8d862c5eb4..66c99ed9ff 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -340,16 +340,9 @@ void TransformDrawEngine::ApplyDrawState(int prim) { bool bmask = ((gstate.pmskc >> 16) & 0xFF) < 128; bool amask = (gstate.pmska & 0xFF) < 128; - if (gstate.isModeClear()) { - // Clear mode? Obey the clear mode alpha mask (works opposite) - if (gstate.isClearModeAlphaMask()) { - amask = false; - } - } else { - // Let's not write to alpha if stencil isn't enabled. - if (!gstate.isStencilTestEnabled()) { - amask = false; - } + // Let's not write to alpha if stencil isn't enabled. + if (!gstate.isStencilTestEnabled()) { + amask = false; } glstate.colorMask.set(rmask, gmask, bmask, amask);