diff options
| author | TellowKrinkle <tellowkrinkle@gmail.com> | 2022-07-17 20:50:53 -0500 |
|---|---|---|
| committer | TellowKrinkle <tellowkrinkle@gmail.com> | 2022-07-17 20:50:53 -0500 |
| commit | 88c85ce471f73c16694a0a3505b3e2ecc2da1563 (patch) | |
| tree | 98b26b11b6f1073bf908348e1b1b900f85845f16 /Source/Core/VideoCommon/RenderState.cpp | |
| parent | 70b0b03c3cd65d90a74f16a5ddd38801da4dce9f (diff) | |
VideoCommon: Fix IsDualSrc check for dst blend factors
Diffstat (limited to 'Source/Core/VideoCommon/RenderState.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderState.cpp | 11 |
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 |
