summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/RenderState.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderState.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/RenderState.cpp b/Source/Core/VideoCommon/RenderState.cpp
index 696574f109..7e6d845ccb 100644
--- a/Source/Core/VideoCommon/RenderState.cpp
+++ b/Source/Core/VideoCommon/RenderState.cpp
@@ -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)
{