From 164a6846b0f2d1b32111c0eb9d7fc95ab3947d99 Mon Sep 17 00:00:00 2001 From: raven02 Date: Thu, 2 Jan 2014 20:24:57 +0800 Subject: [PATCH] Indentation fix --- GPU/GLES/StateMapping.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index 78f752fde..f1c926938 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -409,16 +409,17 @@ void TransformDrawEngine::ApplyDrawState(int prim) { bool bmask = ((gstate.pmskc >> 16) & 0xFF) < 128; bool amask = (gstate.pmska & 0xFF) < 128; - // Let's not write to alpha if stencil isn't enabled. - if (!gstate.isStencilTestEnabled()) { - amask = false; - } else { - // If the stencil type is set to KEEP, we shouldn't write to the stencil/alpha channel. - if (ReplaceAlphaWithStencilType() == STENCIL_VALUE_KEEP) { - amask = false; - } - } - glstate.colorMask.set(rmask, gmask, bmask, amask); + // Let's not write to alpha if stencil isn't enabled. + if (!gstate.isStencilTestEnabled()) { + amask = false; + } else { + // If the stencil type is set to KEEP, we shouldn't write to the stencil/alpha channel. + if (ReplaceAlphaWithStencilType() == STENCIL_VALUE_KEEP) { + amask = false; + } + } + + glstate.colorMask.set(rmask, gmask, bmask, amask); // Stencil Test if (gstate.isStencilTestEnabled() && enableStencilTest) {