mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-26 08:55:58 +00:00
Merge pull request #5760 from raven02/patch-43
Return false when alpha blending disabled
This commit is contained in:
commit
e270c3eafd
@ -234,11 +234,14 @@ static bool IsColorTestTriviallyTrue() {
|
||||
}
|
||||
}
|
||||
|
||||
static bool AlphaToColorDoubling() {
|
||||
// 2x alpha in the source function and full alpha = source color doubling.
|
||||
// If we see this, we don't really need to care about the dest alpha function - sure we can't handle
|
||||
// the doubling dest ones, but there's nothing we can do about that.
|
||||
return (gstate.getBlendFuncA() == GE_SRCBLEND_DOUBLESRCALPHA) && (gstate_c.vertexFullAlpha && (gstate_c.textureFullAlpha || !gstate.isTextureAlphaUsed()));
|
||||
static bool AlphaToColorDoubling() {
|
||||
if (!gstate.isAlphaBlendEnabled()) {
|
||||
return false;
|
||||
}
|
||||
// 2x alpha in the source function and full alpha = source color doubling.
|
||||
// If we see this, we don't really need to care about the dest alpha function - sure we can't handle
|
||||
// the doubling dest ones, but there's nothing we can do about that.
|
||||
return (gstate.getBlendFuncA() == GE_SRCBLEND_DOUBLESRCALPHA) && (gstate_c.vertexFullAlpha && (gstate_c.textureFullAlpha || !gstate.isTextureAlphaUsed()));
|
||||
}
|
||||
|
||||
static bool CanDoubleSrcBlendMode() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user