GLES: Disable logic op while alpha blend is enabled. Having them both enabled at the same time makes no sense, and this seems like the safest possible fix for #3220 as logic op usage is rare.

This commit is contained in:
Henrik Rydgard 2013-08-18 12:59:32 +02:00
parent e6ad305545
commit f4c05392e2

View File

@ -259,7 +259,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
#if !defined(USING_GLES2)
// Logic Ops
if (gstate.isLogicOpEnabled()) {
if (gstate.isLogicOpEnabled() && !gstate.isAlphaBlendEnabled()) {
glstate.colorLogicOp.enable();
glstate.logicOp.set(logicOps[gstate.getLogicOp()]);
} else