Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10868 from tellowkrinkle/UsesDSBFix
VideoCommon: Fix IsDualSrc check for dst blend factors
  • Loading branch information
JosJuice committed Jul 23, 2022
2 parents 9a45a69 + 88c85ce commit e5a177e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Source/Core/VideoCommon/RenderState.cpp
Expand Up @@ -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
Expand Down

0 comments on commit e5a177e

Please sign in to comment.