Depth sorter improvement

Fix ordering when two triangles in a plane share vertices. Triangle
still has to be tested with other triangles.
This commit is contained in:
Jakub Valtar
2015-10-16 21:45:35 +02:00
parent cbed7139c2
commit 4386d6431d
@@ -13449,9 +13449,9 @@ public class PGraphicsOpenGL extends PGraphics {
testTid = activeTid + 1;
} else {
// oops, we already tested this one, probably intersecting or
// interlocked in loop with others, just draw it incorrectly :(
draw = true;
// oops, we already tested this one, either in one plane or
// interlocked in loop with others, just ignore it for now :(
testTid++;
}
}
}