From d8cd8e3e65711f54ea6300b242730f381a26c64d Mon Sep 17 00:00:00 2001 From: benfry Date: Fri, 4 Jun 2010 09:19:53 +0000 Subject: [PATCH] fix for beginShape(POINTS) in large amounts (bug #1572) --- core/src/processing/core/PGraphics3D.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/core/PGraphics3D.java b/core/src/processing/core/PGraphics3D.java index 12256de30..9abf6726d 100644 --- a/core/src/processing/core/PGraphics3D.java +++ b/core/src/processing/core/PGraphics3D.java @@ -979,7 +979,7 @@ public class PGraphics3D extends PGraphics { protected void addPoint(int a) { if (pointCount == points.length) { int[][] temp = new int[pointCount << 1][LINE_FIELD_COUNT]; - System.arraycopy(points, 0, temp, 0, lineCount); + System.arraycopy(points, 0, temp, 0, pointCount); points = temp; } points[pointCount][VERTEX1] = a;