Zeroize destination alpha as well when stencil test disabled.

This commit is contained in:
raven02 2013-09-15 12:49:28 +08:00
parent 2d084ec747
commit ecdc82fb19

View file

@ -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);
}