From 056df405a79f6928acb5f3d0d7f7501bcacc5949 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Sun, 29 Jan 2012 21:04:08 +0000 Subject: [PATCH] Corrected size of cache of point attributes in PShape3D --- android/core/src/processing/core/PShape3D.java | 2 +- java/libraries/opengl/src/processing/opengl/PShape3D.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;