From 88c85ce471f73c16694a0a3505b3e2ecc2da1563 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sun, 17 Jul 2022 20:50:53 -0500 Subject: [PATCH] VideoCommon: Fix IsDualSrc check for dst blend factors --- Source/Core/VideoCommon/RenderState.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Source/Core/VideoCommon/RenderState.cpp b/Source/Core/VideoCommon/RenderState.cpp index 7df51a1503..85e9adee15 100644 --- a/Source/Core/VideoCommon/RenderState.cpp +++ b/Source/Core/VideoCommon/RenderState.cpp @@ -32,16 +32,7 @@ static bool IsDualSrc(SrcBlendFactor factor) static bool IsDualSrc(DstBlendFactor factor) { - switch (factor) - { - case DstBlendFactor::SrcClr: - case DstBlendFactor::SrcAlpha: - case DstBlendFactor::InvSrcClr: - case DstBlendFactor::InvSrcAlpha: - return true; - default: - return false; - } + return factor == DstBlendFactor::SrcAlpha || factor == DstBlendFactor::InvSrcAlpha; } bool BlendingState::RequiresDualSrc() const