Login  Register

Re: How to use VBO?

Posted by Chaz on Jan 18, 2015; 1:36pm
URL: https://forum.jogamp.org/How-to-use-VBO-tp4033871p4033873.html

Ok, i have changed the code. But exceptions still are.

Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Caught GLException: GL_INVALID_ENUM​: Invalid binding target 0x1 on thread AWT-EventQueue-0
        at javax.media.opengl.GLException.newGLException(GLException.java:75)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1394)
        at javax.media.opengl.Threading.invoke(Threading.java:223)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:525)
        at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:579)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
        at sun.awt.RepaintArea.paint(RepaintArea.java:240)
        at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:347)
        at java.awt.Component.dispatchEventImpl(Component.java:4937)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue$4.run(EventQueue.java:708)
        at java.awt.EventQueue$4.run(EventQueue.java:706)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: javax.media.opengl.GLException: GL_INVALID_ENUM​: Invalid binding target 0x1
        at jogamp.opengl.GLBufferStateTracker.getQueryName(GLBufferStateTracker.java:151)
        at jogamp.opengl.GLBufferStateTracker.getBoundBufferObject(GLBufferStateTracker.java:225)
        at jogamp.opengl.GLBufferObjectTracker.createBufferStorage(GLBufferObjectTracker.java:156)
        at jogamp.opengl.gl4.GL4bcImpl.glBufferData(GL4bcImpl.java:37383)
        at Terrain.CreateBuffer(Terrain.java:98)
        at Main.init(Main.java:329)
        at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:640)
        at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:662)
        at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1366)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1275)
        ... 28 more