VideoCommon: Fix IsDualSrc check for dst blend factors

This commit is contained in:
TellowKrinkle 2022-07-17 20:50:53 -05:00
parent 70b0b03c3c
commit 88c85ce471

View File

@ -32,16 +32,7 @@ static bool IsDualSrc(SrcBlendFactor factor)
static bool IsDualSrc(DstBlendFactor factor) static bool IsDualSrc(DstBlendFactor factor)
{ {
switch (factor) return factor == DstBlendFactor::SrcAlpha || factor == DstBlendFactor::InvSrcAlpha;
{
case DstBlendFactor::SrcClr:
case DstBlendFactor::SrcAlpha:
case DstBlendFactor::InvSrcClr:
case DstBlendFactor::InvSrcAlpha:
return true;
default:
return false;
}
} }
bool BlendingState::RequiresDualSrc() const bool BlendingState::RequiresDualSrc() const