GS-d3d11: Disable blending when color isn't written.

Fixes d3d11 crashing on mgs3 using intel igpu.
This commit is contained in:
lightningterror 2022-08-08 00:22:54 +02:00
parent 2cd44412f6
commit 6035db3231
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ void GSDevice11::SetupOM(OMDepthStencilSelector dssel, OMBlendSelector bsel, u8
memset(&bd, 0, sizeof(bd));
if (bsel.blend_enable)
if (bsel.blend_enable && (bsel.wrgba & 0x7))
{
bd.RenderTarget[0].BlendEnable = TRUE;
bd.RenderTarget[0].BlendOp = s_d3d11_blend_ops[bsel.blend_op];