fix for beginShape(POINTS) in large amounts (bug #1572)

This commit is contained in:
benfry
2010-06-04 09:19:53 +00:00
parent 8cebc83f67
commit d8cd8e3e65
+1 -1
View File
@@ -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;