Re: Viewport errors in GL3.0
Posted by sasmaster on May 31, 2012; 7:59pm
URL: https://forum.jogamp.org/Viewport-errors-in-GL3-0-tp4014062p4024658.html
It doesn't really help to understand what is the problem.For example now I try to setup a renderer where I use a timer for render loops and init a GLCanvas and context in a separate class.So when the overriden reshape() is called ( even if I remove glViewport) I am getting this :
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Thread[AWT-EventQueue-0,6,main] glGetError() returned the following error codes after a call to glViewport(<int> 0x0, <int> 0x0, <int> 0x318, <int> 0x23D): GL_INVALID_ENUM ( 1280 0x500),
at javax.media.opengl.DebugGL3.checkGLGetError(DebugGL3.java:9697)
at javax.media.opengl.DebugGL3.glViewport(DebugGL3.java:7753)
at jogamp.opengl.GLDrawableHelper.reshape(GLDrawableHelper.java:202)
at jogamp.opengl.GLDrawableHelper.reshape(GLDrawableHelper.java:210)
at javax.media.opengl.awt.GLCanvas$6.run(GLCanvas.java:845)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:864)
at javax.media.opengl.Threading.invoke(Threading.java:193)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:405)
at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:482)
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:703)
at java.awt.EventQueue.access$000(EventQueue.java:102)
at java.awt.EventQueue$3.run(EventQueue.java:662)
at java.awt.EventQueue$3.run(EventQueue.java:660)
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:676)
at java.awt.EventQueue$4.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
I have no clue why I am getting it ! Any suggestions ?