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.
This commit is contained in:
Flyinghead 2018-07-06 20:02:43 +02:00
parent 0df91770d2
commit e067534f26
1 changed files with 3 additions and 3 deletions

View File

@ -522,9 +522,9 @@ void GenSorted(int first, int count)
if (flip) if (flip)
{ {
v0=&vtx[2]; v0=&vtx[1];
v1=&vtx[1]; v1=&vtx[0];
v2=&vtx[0]; v2=&vtx[2];
} }
else else
{ {