From fadec581ce94955a7cac3d6c226bb79e69291f77 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Tue, 20 Nov 2012 20:43:24 +0000 Subject: [PATCH] set curveVertexCount to zero in beginShape() --- core/src/processing/opengl/PGraphicsOpenGL.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/processing/opengl/PGraphicsOpenGL.java b/core/src/processing/opengl/PGraphicsOpenGL.java index 42ebea90d..b4659b80f 100644 --- a/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/core/src/processing/opengl/PGraphicsOpenGL.java @@ -2176,7 +2176,7 @@ public class PGraphicsOpenGL extends PGraphics { @Override public void beginShape(int kind) { shape = kind; - + curveVertexCount = 0; inGeo.clear(); breakShape = true; @@ -8097,6 +8097,7 @@ public class PGraphicsOpenGL extends PGraphics { boolean fill, boolean stroke, int detail, int code, int shape) { curveVertexCheck(shape); + float[] vertex = curveVertices[curveVertexCount]; vertex[X] = x; vertex[Y] = y;