diff options
| author | degasus <wickmarkus@web.de> | 2013-01-18 00:44:35 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2013-01-18 00:44:35 +0100 |
| commit | 714ff50fdfd435947f7a9add24fae5260c5e00e2 (patch) | |
| tree | c68c92e30bd679cb1a6ad7e93993ded3b85a2933 /Source/Core/VideoCommon/Src/BPStructs.cpp | |
| parent | a87fd89fce2c154a546c1a7a6aa325fab4f50493 (diff) | |
set blending if dual source might be triggered
Diffstat (limited to 'Source/Core/VideoCommon/Src/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/BPStructs.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/BPStructs.cpp b/Source/Core/VideoCommon/Src/BPStructs.cpp index 0bde9cc613..47dab0ec94 100644 --- a/Source/Core/VideoCommon/Src/BPStructs.cpp +++ b/Source/Core/VideoCommon/Src/BPStructs.cpp @@ -224,6 +224,8 @@ void BPWritten(const BPCmd& bp) { PRIM_LOG("constalpha: alp=%d, en=%d", bpmem.dstalpha.alpha, bpmem.dstalpha.enable); PixelShaderManager::SetDestAlpha(bpmem.dstalpha); + if(bp.changes & 0x100) + SetBlendMode(); break; } // This is called when the game is done drawing the new frame (eg: like in DX: Begin(); Draw(); End();) @@ -457,6 +459,8 @@ void BPWritten(const BPCmd& bp) case BPMEM_ZCOMPARE: // Set the Z-Compare and EFB pixel format g_renderer->SetColorMask(); // alpha writing needs to be disabled if the new pixel format doesn't have an alpha channel OnPixelFormatChange(); + if(bp.changes & 3) + SetBlendMode(); // dual source could be activated by changing to PIXELFMT_RGBA6_Z24 break; case BPMEM_MIPMAP_STRIDE: // MipMap Stride Channel |
