mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-12 05:11:38 +00:00
OGL: Use VideoCommon blend state for framebuffer configuration.
This commit is contained in:
parent
3df828463d
commit
23b0faeba5
3 changed files with 57 additions and 144 deletions
|
@ -142,6 +142,10 @@ static void BPWritten(const BPCmd& bp)
|
|||
(int)bpmem.blendmode.dstfactor, (int)bpmem.blendmode.srcfactor,
|
||||
(int)bpmem.blendmode.subtract, (int)bpmem.blendmode.logicmode);
|
||||
|
||||
// Set Blending Mode
|
||||
if (bp.changes)
|
||||
SetBlendMode();
|
||||
|
||||
// Set LogicOp Blending Mode
|
||||
if (bp.changes & 0xF002) // logicopenable | logicmode
|
||||
SetLogicOpMode();
|
||||
|
@ -150,10 +154,6 @@ static void BPWritten(const BPCmd& bp)
|
|||
if (bp.changes & 4) // dither
|
||||
SetDitherMode();
|
||||
|
||||
// Set Blending Mode
|
||||
if (bp.changes & 0xFF1) // blendenable | alphaupdate | dstfactor | srcfactor | subtract
|
||||
SetBlendMode();
|
||||
|
||||
// Set Color Mask
|
||||
if (bp.changes & 0x18) // colorupdate | alphaupdate
|
||||
SetColorMask();
|
||||
|
@ -316,7 +316,10 @@ static void BPWritten(const BPCmd& bp)
|
|||
if (bp.changes & 0xFFFF)
|
||||
PixelShaderManager::SetAlpha();
|
||||
if (bp.changes)
|
||||
{
|
||||
g_renderer->SetColorMask();
|
||||
SetBlendMode();
|
||||
}
|
||||
return;
|
||||
case BPMEM_BIAS: // BIAS
|
||||
PRIM_LOG("ztex bias=0x%x", bpmem.ztex1.bias);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue