gs-d3d11: Move BlendEnable toggle.

This commit is contained in:
lightningterror 2021-07-30 13:45:49 +02:00
parent 4308aa29dd
commit dc4b382b20
1 changed files with 2 additions and 3 deletions

View File

@ -346,11 +346,10 @@ void GSDevice11::SetupOM(OMDepthStencilSelector dssel, OMBlendSelector bsel, uin
memset(&bd, 0, sizeof(bd));
bd.RenderTarget[0].BlendEnable = bsel.abe;
if (bsel.abe)
{
HWBlend blend = GetBlend(bsel.blend_index);
const HWBlend blend = GetBlend(bsel.blend_index);
bd.RenderTarget[0].BlendEnable = TRUE;
bd.RenderTarget[0].BlendOp = (D3D11_BLEND_OP)blend.op;
bd.RenderTarget[0].SrcBlend = (D3D11_BLEND)blend.src;
bd.RenderTarget[0].DestBlend = (D3D11_BLEND)blend.dst;