diff --git a/android/core/src/processing/core/PShape3D.java b/android/core/src/processing/core/PShape3D.java index b5c3a7613..33938aae7 100644 --- a/android/core/src/processing/core/PShape3D.java +++ b/android/core/src/processing/core/PShape3D.java @@ -2954,7 +2954,7 @@ public class PShape3D extends PShape { if (modifiedPointAttributes) { if (root.pointAttributesCache == null) { - root.pointAttributesCache = new VertexCache(3); + root.pointAttributesCache = new VertexCache(2); } root.pointAttributesCache.add(root.pointVertCopyOffset, tess.pointVertexCount, tess.pointAttributes); modifiedPointAttributes = false; diff --git a/java/libraries/opengl/src/processing/opengl/PShape3D.java b/java/libraries/opengl/src/processing/opengl/PShape3D.java index a6111437a..9bae0451c 100644 --- a/java/libraries/opengl/src/processing/opengl/PShape3D.java +++ b/java/libraries/opengl/src/processing/opengl/PShape3D.java @@ -2978,7 +2978,7 @@ public class PShape3D extends PShape { if (modifiedPointAttributes) { if (root.pointAttributesCache == null) { - root.pointAttributesCache = new VertexCache(3); + root.pointAttributesCache = new VertexCache(2); } root.pointAttributesCache.add(root.pointVertCopyOffset, tess.pointVertexCount, tess.pointAttributes); modifiedPointAttributes = false;