summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderState.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2022-07-23 22:14:07 +0200
committerGitHub <noreply@github.com>2022-07-23 22:14:07 +0200
commite5a177ece9fe3a86602aea52f4963360aecf8bea (patch)
tree3a413ff933e4347eb5dc8883dd715dcf71b9d236 /Source/Core/VideoCommon/RenderState.cpp
parent9a45a690d858c5eb42c21f185c9d1bd38d2318a8 (diff)
parent88c85ce471f73c16694a0a3505b3e2ecc2da1563 (diff)
Merge pull request #10868 from tellowkrinkle/UsesDSBFix
VideoCommon: Fix IsDualSrc check for dst blend factors
Diffstat (limited to 'Source/Core/VideoCommon/RenderState.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderState.cpp11
1 files changed, 1 insertions, 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