Merge pull request #5956 from Armada651/fix-remove-clr-usage

RenderState: Fix incorrect blending factors when removing the color usage.
This commit is contained in:
Jules Blok 2017-08-21 17:06:44 +02:00 committed by GitHub
commit d0fc223fe1

View File

@ -94,9 +94,10 @@ void BlendingState::Generate(const BPMemory& bp)
srcfactor = RemoveDstAlphaUsage(srcfactor);
dstfactor = RemoveDstAlphaUsage(dstfactor);
}
// replaces SRCCLR with SRCALPHA
srcfactoralpha = RemoveSrcColorUsage(srcfactor);
dstfactoralpha = RemoveDstColorUsage(dstfactor);
// replaces SRCCLR with SRCALPHA and DSTCLR with DSTALPHA, it is important to
// use the dst function for the src factor and vice versa
srcfactoralpha = RemoveDstColorUsage(srcfactor);
dstfactoralpha = RemoveSrcColorUsage(dstfactor);
if (dstalpha)
{