From 589419b50efb63ecd8864c27eb9aeff85ad1e1c9 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 1 Aug 2011 22:45:24 +0200 Subject: Cont. fix 'Allow VBO/Texture Name (int) < 0' Refines spec GLArrayData and it's implementations. see commit 76f7552c4a219b116e86949f271e613ba0f6f160 see commit 4d33a2df1e991ab75817dcb44061d88d3c499cdb see commit 2dbd16fc3edf29b39ba37a11b9fbf1b2aad75c45 --- src/jogl/classes/com/jogamp/opengl/util/GLArrayDataWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes') diff --git a/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataWrapper.java b/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataWrapper.java index 798e1bca3..e3b250934 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataWrapper.java +++ b/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataWrapper.java @@ -279,7 +279,7 @@ public class GLArrayDataWrapper implements GLArrayData { this.vboOffset=vboOffset; switch(vboUsage) { - case -1: // nop + case 0: // nop case GL.GL_STATIC_DRAW: case GL.GL_DYNAMIC_DRAW: case GL2ES2.GL_STREAM_DRAW: @@ -288,7 +288,7 @@ public class GLArrayDataWrapper implements GLArrayData { throw new GLException("invalid gpuBufferUsage: "+vboUsage+":\n\t"+this); } switch(vboTarget) { - case -1: // nop + case 0: // nop case GL.GL_ARRAY_BUFFER: case GL.GL_ELEMENT_ARRAY_BUFFER: break; -- cgit v1.2.3