mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
softgpu: Fix pixel ID for invalid blend factors.
They should still be treated as FIX, we were accidentally using our special values.
This commit is contained in:
parent
6c723c0517
commit
07b67ef572
@ -155,9 +155,9 @@ void ComputePixelFuncID(PixelFuncID *id) {
|
||||
id->alphaBlendSrc = gstate.getBlendFuncA();
|
||||
id->alphaBlendDst = gstate.getBlendFuncB();
|
||||
// Special values.
|
||||
if (id->alphaBlendSrc == GE_SRCBLEND_FIXA)
|
||||
if (id->alphaBlendSrc >= GE_SRCBLEND_FIXA)
|
||||
id->alphaBlendSrc = (uint8_t)OptimizeAlphaFactor(gstate.getFixA());
|
||||
if (id->alphaBlendDst == GE_DSTBLEND_FIXB)
|
||||
if (id->alphaBlendDst >= GE_DSTBLEND_FIXB)
|
||||
id->alphaBlendDst = (uint8_t)OptimizeAlphaFactor(gstate.getFixB());
|
||||
}
|
||||
|
||||
|
2
test.py
2
test.py
@ -135,6 +135,7 @@ tests_good = [
|
||||
"gpu/clut/shifts",
|
||||
"gpu/commands/basic",
|
||||
"gpu/commands/blend",
|
||||
"gpu/commands/blend565",
|
||||
"gpu/commands/blocktransfer",
|
||||
"gpu/commands/material",
|
||||
"gpu/dither/dither",
|
||||
@ -375,7 +376,6 @@ tests_next = [
|
||||
"font/shadowglyphimageclip",
|
||||
"font/shadowinfo",
|
||||
"gpu/clipping/guardband",
|
||||
"gpu/commands/blend565",
|
||||
"gpu/commands/cull",
|
||||
"gpu/commands/light",
|
||||
"gpu/complex/complex",
|
||||
|
Loading…
Reference in New Issue
Block a user