From bdc55f9557477ecbaabf3a98f2560e461bc44ba9 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Mon, 7 Feb 2022 15:46:20 -0500 Subject: [PATCH] RenderState: Set source and destination alpha factors in logic op workaround --- Source/Core/VideoCommon/RenderState.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)