Fix translucent triangles not being autosorted(?)

This commit is contained in:
Flyinghead 2018-05-10 13:02:57 +02:00
parent b77843b927
commit 0f92189585
1 changed files with 10 additions and 2 deletions

View File

@ -1633,6 +1633,14 @@ bool UsingAutoSort()
{
if (((FPU_PARAM_CFG >> 21) & 1) == 0)
return ((ISP_FEED_CFG & 1) == 0);
else
return ((vri(REGION_BASE) >> 29) & 1) == 0;
else {
// Hack: check several tiles instead of just the first one (Rayman, VR2)
for (u32 i = 0; i < 16; i++)
{
if (((vri(REGION_BASE + i * 24) >> 29) & 1) == 0)
return true;
}
return false;
}
}