From a375d5de9157e60b2c865df8f7d79a0531a0458b Mon Sep 17 00:00:00 2001 From: codeanticode Date: Tue, 8 Sep 2015 18:09:59 -0400 Subject: [PATCH] store end of segment for next bevel --- core/src/processing/opengl/PGraphicsOpenGL.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/processing/opengl/PGraphicsOpenGL.java b/core/src/processing/opengl/PGraphicsOpenGL.java index ed133d5d4..784e8628c 100644 --- a/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/core/src/processing/opengl/PGraphicsOpenGL.java @@ -12105,11 +12105,12 @@ public class PGraphicsOpenGL extends PGraphics { cache.incCounts(index, 6, 1); } - - // Vertices for next bevel - lastInd[0] = (short) (count + 2); - lastInd[1] = (short) (count + 3); } + + // The last two vertices of the segment will be used in the next + // bevel triangle + lastInd[0] = (short) (count + 2); + lastInd[1] = (short) (count + 3); } return index; }