pvr: ignore Z Write Disable for punch-through polys?

tentative fix for Worms World Party
This commit is contained in:
Flyinghead 2019-07-07 22:13:43 +02:00
parent c3a42b0b22
commit 9eef02a1e8
2 changed files with 14 additions and 2 deletions

View File

@ -245,7 +245,13 @@ template <u32 Type, bool SortingEnabled>
// Depth buffer is updated in pass 0 (and also in pass 1 for OP PT)
if (pass < 2)
glcache.DepthMask(!gp->isp.ZWriteDis);
{
// Ignore ZWriteDis for punch-through? fixes Worms World Party
if (Type == ListType_Punch_Through)
glcache.DepthMask(GL_TRUE);
else
glcache.DepthMask(!gp->isp.ZWriteDis);
}
else
glcache.DepthMask(GL_FALSE);
}

View File

@ -263,7 +263,13 @@ __forceinline
if (SortingEnabled && !settings.rend.PerStripSorting)
glcache.DepthMask(GL_FALSE);
else
glcache.DepthMask(!gp->isp.ZWriteDis);
{
// Ignore ZWriteDis for punch-through? fixes Worms World Party
if (Type == ListType_Punch_Through)
glcache.DepthMask(GL_TRUE);
else
glcache.DepthMask(!gp->isp.ZWriteDis);
}
}
template <u32 Type, bool SortingEnabled>