Jogamp
Adapt to commit 55dae6968075cd082f7a9b8060f0912669e7aa78
authorSven Gothel <sgothel@jausoft.com>
Mon, 22 Aug 2011 15:30:13 +0000 (17:30 +0200)
committerSven Gothel <sgothel@jausoft.com>
Mon, 22 Aug 2011 15:30:13 +0000 (17:30 +0200)
src/demos/es1/angeles/AngelesGL.java
src/demos/es1/angeles/AngelesGLil.java

index 0068ade..42dbf76 100755 (executable)
@@ -300,12 +300,12 @@ public class GLSpatial {
         vboName = tmp[0];
         
         vArrayData = GLArrayDataWrapper.createFixed(gl.GL_VERTEX_ARRAY, vComps, GL.GL_FLOAT, false,
-                                                    0, pBuffer, vboName, vOffset, GL.GL_STATIC_DRAW);
+                                                    0, pBuffer, vboName, vOffset, GL.GL_STATIC_DRAW, GL.GL_ARRAY_BUFFER);
         cArrayData = GLArrayDataWrapper.createFixed(gl.GL_COLOR_ARRAY, cComps, GL.GL_FLOAT, false,
-                                                    0, pBuffer, vboName, cOffset, GL.GL_STATIC_DRAW);
+                                                    0, pBuffer, vboName, cOffset, GL.GL_STATIC_DRAW, GL.GL_ARRAY_BUFFER);
         if(useNormalArray) {
             nArrayData = GLArrayDataWrapper.createFixed(gl.GL_NORMAL_ARRAY, nComps, GL.GL_FLOAT, false,
-                                                        0, pBuffer, vboName, nOffset, GL.GL_STATIC_DRAW);
+                                                        0, pBuffer, vboName, nOffset, GL.GL_STATIC_DRAW, GL.GL_ARRAY_BUFFER);
         }
     }
 
index 2ead5ea..3e96dc1 100755 (executable)
@@ -299,12 +299,12 @@ public class GLSpatial {
         interlArray.flip();
 
         vArrayData = GLArrayDataWrapper.createFixed(gl.GL_VERTEX_ARRAY, vComps, GL.GL_FLOAT, false,
-                                                    bStride, pBuffer, vboName, vOffset, GL.GL_STATIC_DRAW);
+                                                    bStride, pBuffer, vboName, vOffset, GL.GL_STATIC_DRAW, GL.GL_ARRAY_BUFFER);
         cArrayData = GLArrayDataWrapper.createFixed(gl.GL_COLOR_ARRAY, cComps, GL.GL_FLOAT, false,
-                                                    bStride, pBuffer, vboName, cOffset, GL.GL_STATIC_DRAW);
+                                                    bStride, pBuffer, vboName, cOffset, GL.GL_STATIC_DRAW, GL.GL_ARRAY_BUFFER);
         if(useNormalArray) {
             nArrayData = GLArrayDataWrapper.createFixed(gl.GL_NORMAL_ARRAY, nComps, GL.GL_FLOAT, false,
-                                                        bStride, pBuffer, vboName, nOffset, GL.GL_STATIC_DRAW);
+                                                        bStride, pBuffer, vboName, nOffset, GL.GL_STATIC_DRAW, GL.GL_ARRAY_BUFFER);
         }
     }
 
http://JogAmp.org git info: FAQ, tutorial and man pages.