Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
videoCommon: also reset logicOp on mode switch
  • Loading branch information
degasus committed Sep 9, 2013
1 parent 4146e1f commit 3ec9f9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Core/VideoCommon/Src/BPStructs.cpp
Expand Up @@ -200,19 +200,19 @@ void BPWritten(const BPCmd& bp)
bpmem.blendmode.dstfactor, bpmem.blendmode.srcfactor, bpmem.blendmode.subtract, bpmem.blendmode.logicmode);

// Set LogicOp Blending Mode
if (bp.changes & 2)
if (bp.changes & 0xF002) // logicopenable | logicmode
SetLogicOpMode();

// Set Dithering Mode
if (bp.changes & 4)
if (bp.changes & 4) // dither
SetDitherMode();

// Set Blending Mode
if (bp.changes & 0xFF1)
if (bp.changes & 0xFF1) // blendenable | alphaupdate | dstfactor | srcfactor | subtract
SetBlendMode();

// Set Color Mask
if (bp.changes & 0x18)
if (bp.changes & 0x18) // colorupdate | alphaupdate
SetColorMask();
}
break;
Expand Down

0 comments on commit 3ec9f9b

Please sign in to comment.