mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix for beginShape(POINTS) in large amounts (bug #1572)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user