mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-29 21:32:52 +00:00
VideoCommon: Fix IsDualSrc check for dst blend factors
This commit is contained in:
parent
70b0b03c3c
commit
88c85ce471
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user