From 4386d6431d770f97e234e2f29016273ce5a758af Mon Sep 17 00:00:00 2001 From: Jakub Valtar Date: Fri, 16 Oct 2015 21:45:35 +0200 Subject: [PATCH] Depth sorter improvement Fix ordering when two triangles in a plane share vertices. Triangle still has to be tested with other triangles. --- core/src/processing/opengl/PGraphicsOpenGL.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/processing/opengl/PGraphicsOpenGL.java b/core/src/processing/opengl/PGraphicsOpenGL.java index 02e0b7035..4166e32bf 100644 --- a/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/core/src/processing/opengl/PGraphicsOpenGL.java @@ -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++; } } }