diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index 1d1aa8e605..8be64312c7 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -194,7 +194,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) { float constantAlpha = 1.0f; if (gstate.isStencilTestEnabled() && ReplaceAlphaWithStencil() == REPLACE_ALPHA_NO) { - if (gstate.isStencilTestEnabled() == STENCIL_VALUE_UNIFORM) { + if (ReplaceAlphaWithStencilType() == STENCIL_VALUE_UNIFORM) { constantAlpha = (float) gstate.getStencilTestRef() * (1.0f / 255.0f); } }