diff options
author | Sven Gothel <[email protected]> | 2011-08-22 16:48:15 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-08-22 16:48:15 +0200 |
commit | 16e5b7e6c14497b932f58ed38fc03c48656fdb09 (patch) | |
tree | 72fa7b7144ff317f9300ee3a9ecb4d43d42e173c /src/jogl | |
parent | 87ff90fb03216737df70ff83246664b7fba2663e (diff) |
Fix regression of commit 6c346d98f04e2355210960fe9ffde47432f04d62, where GLDataArrayHandler throws an exception in cstr if not VBO, but VBO usage is determined later
Diffstat (limited to 'src/jogl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/util/GLDataArrayHandler.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/GLDataArrayHandler.java b/src/jogl/classes/jogamp/opengl/util/GLDataArrayHandler.java index 259b8ae23..d114abe4d 100644 --- a/src/jogl/classes/jogamp/opengl/util/GLDataArrayHandler.java +++ b/src/jogl/classes/jogamp/opengl/util/GLDataArrayHandler.java @@ -43,10 +43,6 @@ public class GLDataArrayHandler implements GLArrayHandler { public GLDataArrayHandler(GLArrayDataEditable ad) { this.ad = ad; - if(!ad.isVBO()) { - // makes no sense otherwise - throw new GLException("GLDataArrayHandler can only handle VBOs."); - } } public final void addSubHandler(GLArrayHandler handler) { @@ -54,6 +50,10 @@ public class GLDataArrayHandler implements GLArrayHandler { } public final void syncData(GL gl, boolean enable) { + if(!ad.isVBO()) { + // makes no sense otherwise + throw new GLException("GLDataArrayHandler can only handle VBOs."); + } if(enable) { Buffer buffer = ad.getBuffer(); |