mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
Merge pull request #10868 from tellowkrinkle/UsesDSBFix
VideoCommon: Fix IsDualSrc check for dst blend factors
This commit is contained in:
commit
e5a177ece9
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user