mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
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:
commit
d0fc223fe1
1 changed files with 4 additions and 3 deletions
|
@ -94,9 +94,10 @@ void BlendingState::Generate(const BPMemory& bp)
|
||||||
srcfactor = RemoveDstAlphaUsage(srcfactor);
|
srcfactor = RemoveDstAlphaUsage(srcfactor);
|
||||||
dstfactor = RemoveDstAlphaUsage(dstfactor);
|
dstfactor = RemoveDstAlphaUsage(dstfactor);
|
||||||
}
|
}
|
||||||
// replaces SRCCLR with SRCALPHA
|
// replaces SRCCLR with SRCALPHA and DSTCLR with DSTALPHA, it is important to
|
||||||
srcfactoralpha = RemoveSrcColorUsage(srcfactor);
|
// use the dst function for the src factor and vice versa
|
||||||
dstfactoralpha = RemoveDstColorUsage(dstfactor);
|
srcfactoralpha = RemoveDstColorUsage(srcfactor);
|
||||||
|
dstfactoralpha = RemoveSrcColorUsage(dstfactor);
|
||||||
|
|
||||||
if (dstalpha)
|
if (dstalpha)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue