From e067534f26895c2e6eb16a4e114e4fa304096205 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Fri, 6 Jul 2018 20:02:43 +0200 Subject: [PATCH] When sorting translucent triangle, keep the third vertex in place. In flat shading mode, the third vertex of a triangle defines its color so we must maintain its index. Fixes the remaining color polygons seen in Evolution - The World of Sacred Device. --- core/rend/gles/gldraw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/rend/gles/gldraw.cpp b/core/rend/gles/gldraw.cpp index 5f132b0b5..801f3a7f9 100644 --- a/core/rend/gles/gldraw.cpp +++ b/core/rend/gles/gldraw.cpp @@ -522,9 +522,9 @@ void GenSorted(int first, int count) if (flip) { - v0=&vtx[2]; - v1=&vtx[1]; - v2=&vtx[0]; + v0=&vtx[1]; + v1=&vtx[0]; + v2=&vtx[2]; } else {