From ecdc82fb197094bd28cf12c847054075345de9d6 Mon Sep 17 00:00:00 2001 From: raven02 Date: Sun, 15 Sep 2013 12:49:28 +0800 Subject: [PATCH] Zeroize destination alpha as well when stencil test disabled. --- GPU/GLES/StateMapping.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index b26b811c4f..3a7766abad 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -221,7 +221,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) { // Fixes some Persona 2 issues, may be correct? (that is, don't change dest alpha at all if blending) // If this doesn't break anything else, it's likely to be right. // I guess an alternative solution would be to simply disable alpha writes if alpha blending is enabled. - glstate.blendFuncSeparate.set(glBlendFuncA, glBlendFuncB, GL_ZERO, glBlendFuncB); + glstate.blendFuncSeparate.set(glBlendFuncA, glBlendFuncB, GL_ZERO, GL_ZERO); } else { glstate.blendFuncSeparate.set(glBlendFuncA, glBlendFuncB, glBlendFuncA, glBlendFuncB); }