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.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