pvr: ignore Z Write Disable for punch-through polys?
tentative fix for Worms World Party
This commit is contained in:
parent
c3a42b0b22
commit
9eef02a1e8
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue