summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/demos/vertexBufferObject/VertexBufferObject.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/demos/vertexBufferObject/VertexBufferObject.java b/src/demos/vertexBufferObject/VertexBufferObject.java
index ce30b88..9a56c4a 100644
--- a/src/demos/vertexBufferObject/VertexBufferObject.java
+++ b/src/demos/vertexBufferObject/VertexBufferObject.java
@@ -543,6 +543,8 @@ public class VertexBufferObject {
if (tmp != bigArrayVBOBytes) {
bigArrayVBOBytes = tmp;
bigArrayVBO = setupBuffer(tmp);
+ }
+ if (bigArray != bigArrayVBO) {
bigArray = bigArrayVBO;
setupBuffers();
}