Re: Using GL2 from JOGL
Posted by
Nelu on
Feb 11, 2019; 9:26am
URL: https://forum.jogamp.org/Using-GL2-from-JOGL-tp4039492p4039511.html
I have a Intel HD Graphics 4000 video card, and i don't do any optimizations to get a fast redraw (case when i use GL2).
https://www.techpowerup.com/gpu-specs/hd-graphics-4000.c1266I get the following exception when i'm trying to run a snippet with GL4 and vertex buffer objects
Exception in thread "main-AWTAnimator#00" com.jogamp.opengl.util.AnimatorBase$UncaughtAnimatorException: com.jogamp.opengl.GLException: Caught GLException: Method "glCreateBuffers" not available on thread main-AWTAnimator#00
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:92)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:204)
at java.lang.Thread.run(Thread.java:748)
The exception occurs in the method glCreateBuffers from GL4
FloatBuffer vertexBuffer = GLBuffers.newDirectFloatBuffer(vertexData);
ShortBuffer elementBuffer = GLBuffers.newDirectShortBuffer(elementData);
IntBuffer bufferName = GLBuffers.newDirectIntBuffer(Buffer.MAX);
gl.glCreateBuffers(Buffer.MAX, bufferName);
But everything it's working on a PC which has an Intel HD Graphics 620 video card
About JZY what version do you recommend me to use? I see on the JZY website is not specified anything about 1.0.2 but just about 1.0.0. Also i saw only 2 commits in the last year.