mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
RenderState: Fix incorrect blending factors when removing the color usage.
This commit is contained in:
parent
92b375b07a
commit
390f3f13ba
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user