mirror of https://github.com/PCSX2/pcsx2.git
GS-d3d11: Disable blending when color isn't written.
Fixes d3d11 crashing on mgs3 using intel igpu.
This commit is contained in:
parent
2cd44412f6
commit
6035db3231
|
@ -350,7 +350,7 @@ void GSDevice11::SetupOM(OMDepthStencilSelector dssel, OMBlendSelector bsel, u8
|
||||||
|
|
||||||
memset(&bd, 0, sizeof(bd));
|
memset(&bd, 0, sizeof(bd));
|
||||||
|
|
||||||
if (bsel.blend_enable)
|
if (bsel.blend_enable && (bsel.wrgba & 0x7))
|
||||||
{
|
{
|
||||||
bd.RenderTarget[0].BlendEnable = TRUE;
|
bd.RenderTarget[0].BlendEnable = TRUE;
|
||||||
bd.RenderTarget[0].BlendOp = s_d3d11_blend_ops[bsel.blend_op];
|
bd.RenderTarget[0].BlendOp = s_d3d11_blend_ops[bsel.blend_op];
|
||||||
|
|
Loading…
Reference in New Issue