Login  Register

Re: WWJ - JME3 - JOGL2

Posted by Xerxes Rånby on Aug 27, 2013; 5:56pm
URL: https://forum.jogamp.org/WWJ-JME3-JOGL2-tp4029842p4029891.html

This is a guess,
It may be possible that the new opengl 4.3 support in 2.0.2 have mistakenly initialized a GL4.hw core context instead of a GL4bc.hw , backward compatible, context.

Please help investigate and print the chosen GLCapabilities.
Can you try add the following inside your GLEventListener init:

  public void init(GLAutoDrawable drawable) {

        GL2 gl = drawable.getGL().getGL2();

        System.err.println("Chosen GLCapabilities: " + drawable.getChosenGLCapabilities());
        System.err.println("INIT GL IS: " + gl.getClass().getName());

If the chosen GLCapabilities is a GL4.hw then we may have initialized the wrong context type.
and.. that would mean the error you see originate from wrong use of a GL4 core context where it is mandatory to bind a VAO before use of glDrawArrays.

It would help if you can generate a runtime debug log, and attach it, that lists all the possible capabilities available using your opengl driver.
http://jogamp.org/wiki/index.php/Jogamp_Versioning_and_Releases#Runtime_Debug_Logs

Cheers
Xerxes