summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderState.cpp
diff options
context:
space:
mode:
authorOatmealDome <julian@oatmealdome.me>2022-02-07 15:46:20 -0500
committerOatmealDome <julian@oatmealdome.me>2022-02-07 16:03:22 -0500
commitbdc55f9557477ecbaabf3a98f2560e461bc44ba9 (patch)
tree6dfd5f66dea2dfaa8635f1d858d345285037d785 /Source/Core/VideoCommon/RenderState.cpp
parent07fd17445c6ca4e89b0cef023ba711bb27c920aa (diff)
RenderState: Set source and destination alpha factors in logic op workaround
Diffstat (limited to 'Source/Core/VideoCommon/RenderState.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderState.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/RenderState.cpp b/Source/Core/VideoCommon/RenderState.cpp
index 15559ae67f..3b3554b4fe 100644
--- a/Source/Core/VideoCommon/RenderState.cpp
+++ b/Source/Core/VideoCommon/RenderState.cpp
@@ -196,7 +196,9 @@ void BlendingState::ApproximateLogicOpWithBlending()
blendenable = true;
subtract = approximations[u32(logicmode.Value())].subtract;
srcfactor = approximations[u32(logicmode.Value())].srcfactor;
+ srcfactoralpha = approximations[u32(logicmode.Value())].srcfactor;
dstfactor = approximations[u32(logicmode.Value())].dstfactor;
+ dstfactoralpha = approximations[u32(logicmode.Value())].dstfactor;
}
void SamplerState::Generate(const BPMemory& bp, u32 index)