Merge pull request #1707 from magumagu/blend-and-logic-op

D3D+OGL: choose blendenable over logicopenable.
This commit is contained in:
Markus Wick 2014-12-16 12:27:04 +01:00
commit d3c4a8eda3
2 changed files with 3 additions and 3 deletions

View File

@ -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];

View File

@ -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]);