mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
Merge pull request #1707 from magumagu/blend-and-logic-op
D3D+OGL: choose blendenable over logicopenable.
This commit is contained in:
commit
d3c4a8eda3
@ -615,7 +615,7 @@ void Renderer::SetBlendMode(bool forceUpdate)
|
||||
(target_has_alpha) ? D3D11_BLEND_INV_DEST_ALPHA : D3D11_BLEND_ZERO
|
||||
};
|
||||
|
||||
if (bpmem.blendmode.logicopenable && !forceUpdate)
|
||||
if (bpmem.blendmode.logicopenable && !bpmem.blendmode.blendenable && !forceUpdate)
|
||||
return;
|
||||
|
||||
if (bpmem.blendmode.subtract)
|
||||
@ -1234,7 +1234,7 @@ void Renderer::SetLogicOpMode()
|
||||
D3D11_BLEND_ONE//15
|
||||
};
|
||||
|
||||
if (bpmem.blendmode.logicopenable)
|
||||
if (bpmem.blendmode.logicopenable && !bpmem.blendmode.blendenable)
|
||||
{
|
||||
gx_state.blend.blend_enable = true;
|
||||
gx_state.blend.blend_op = d3dLogicOps[bpmem.blendmode.logicmode];
|
||||
|
@ -1882,7 +1882,7 @@ void Renderer::SetLogicOpMode()
|
||||
GL_SET
|
||||
};
|
||||
|
||||
if (bpmem.blendmode.logicopenable)
|
||||
if (bpmem.blendmode.logicopenable && !bpmem.blendmode.blendenable)
|
||||
{
|
||||
glEnable(GL_COLOR_LOGIC_OP);
|
||||
glLogicOp(glLogicOpCodes[bpmem.blendmode.logicmode]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user