From a94f01ee78434abcecb8f2eeceaa13367cf79b16 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Thu, 28 Jun 2018 13:21:40 +0200 Subject: [PATCH] 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. --- core/rend/gles/gldraw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rend/gles/gldraw.cpp b/core/rend/gles/gldraw.cpp index a0fbb687e..f75000493 100644 --- a/core/rend/gles/gldraw.cpp +++ b/core/rend/gles/gldraw.cpp @@ -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++; }