aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-08-01 22:45:24 +0200
committerSven Gothel <[email protected]>2011-08-01 22:45:24 +0200
commit589419b50efb63ecd8864c27eb9aeff85ad1e1c9 (patch)
treeb53c101af34bd208ea90a549b5931b7d99c0b407 /src/jogl/classes/com/jogamp/opengl
parent59a5ce435cce9f44f22999ebc89a603cacd53920 (diff)
Cont. fix 'Allow VBO/Texture Name (int) < 0'
Refines spec GLArrayData and it's implementations. see commit 76f7552c4a219b116e86949f271e613ba0f6f160 see commit 4d33a2df1e991ab75817dcb44061d88d3c499cdb see commit 2dbd16fc3edf29b39ba37a11b9fbf1b2aad75c45
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/GLArrayDataWrapper.java4
1 files changed, 2 insertions, 2 deletions
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;