Merge pull request #10868 from tellowkrinkle/UsesDSBFix

VideoCommon: Fix IsDualSrc check for dst blend factors
This commit is contained in:
JosJuice 2022-07-23 22:14:07 +02:00 committed by GitHub
commit e5a177ece9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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