summaryrefslogtreecommitdiffstats
path: root/src/demos
diff options
context:
space:
mode:
authorKenneth Russel <kbrussel@alum.mit.edu>2003-08-08 19:22:12 +0000
committerKenneth Russel <kbrussel@alum.mit.edu>2003-08-08 19:22:12 +0000
commit6e2c5551d6dc19fa5975e095b5205d07c8c607e8 (patch)
tree30b69a107679d9b21c0cbabf20c9416752040ba7 /src/demos
parente90e3d0a63fc5f35ad43d3413d1f612e808d9203 (diff)
Fixed bug in toggling of VBO
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@21 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos')
-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();
}