aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-12 21:44:07 +0200
committerSven Gothel <[email protected]>2012-10-12 21:44:07 +0200
commitd1537f0359f917e5a6b1e77852fa1b1ac8a54d5f (patch)
treedeff2016467921f9a44bfad491cde4a7d5406f9c
parent1992d24671f8d99abccb671b8f9d5a7cd474fd00 (diff)
GLArrayDataClient.bindBuffer(gl, bind=true): checkSeal and init_vbo if required (similar sanity checks as enableBuffer())
-rwxr-xr-xmake/scripts/tests.sh4
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java5
2 files changed, 7 insertions, 2 deletions
diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh
index 6ed6709d4..10811d3e5 100755
--- a/make/scripts/tests.sh
+++ b/make/scripts/tests.sh
@@ -441,11 +441,11 @@ function testawtswt() {
#testnoawt com.jogamp.opengl.test.junit.graph.TestRegionRendererNEWT01 $*
#testnoawt com.jogamp.opengl.test.junit.graph.TestTextRendererNEWT01 $*
#testnoawt com.jogamp.opengl.test.junit.graph.demos.ui.UINewtDemo01 $*
-#testnoawt com.jogamp.opengl.test.junit.graph.demos.GPUTextNewtDemo01 $*
+testnoawt com.jogamp.opengl.test.junit.graph.demos.GPUTextNewtDemo01 $*
#testnoawt com.jogamp.opengl.test.junit.graph.demos.GPUTextNewtDemo02 $*
#testnoawt com.jogamp.opengl.test.junit.graph.demos.GPURegionNewtDemo01 $*
#testnoawt com.jogamp.opengl.test.junit.graph.demos.GPURegionNewtDemo02 $*
-testnoawt com.jogamp.opengl.test.junit.graph.demos.GPUUISceneNewtDemo01 $*
+#testnoawt com.jogamp.opengl.test.junit.graph.demos.GPUUISceneNewtDemo01 $*
#testnoawt com.jogamp.opengl.test.junit.graph.demos.GPUUISceneNewtDemo02 $*
#
diff --git a/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java b/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java
index af091d52b..88cb3303f 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java
@@ -182,6 +182,11 @@ public class GLArrayDataClient extends GLArrayDataWrapper implements GLArrayData
@Override
public boolean bindBuffer(GL gl, boolean bind) {
+ if(bind) {
+ checkSeal(true);
+ // init/generate VBO name if not done yet
+ init_vbo(gl);
+ }
return glArrayHandler.bindBuffer(gl, bind);
}