Force autosort TR triangles using depth func Always to be drawn on top of others

When autosorting triangles, ignore the depth of triangles using the depth func Always and force
them to be on top. Seems to help Psyvariar 2.
This commit is contained in:
Flyinghead 2018-06-28 13:21:40 +02:00
parent 6871061ca0
commit a94f01ee78
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ void GenSorted(int first, int count)
{
fill_id(lst[pfsti].id,v0,v1,v2,vtx_base);
lst[pfsti].pid= ppid ;
lst[pfsti].z = minZ(vtx_base,lst[pfsti].id);
lst[pfsti].z = pp->isp.DepthMode == 7 ? 10000000.0 : minZ(vtx_base,lst[pfsti].id);
pfsti++;
}