Login  Register

Re: javax.media.opengl.GLException: Not a GL2ES1 implementation

Posted by Richard Sahlin on Sep 27, 2010; 5:48am
URL: https://forum.jogamp.org/javax-media-opengl-GLException-Not-a-GL2ES1-implementation-tp1567521p1586938.html

Hi and thanks for the reply.

Here is the stacktrace:

Exception in thread "main" javax.media.opengl.GLException: Not a GL2ES1 implementation
        at com.jogamp.opengl.impl.gl4.GL4bcImpl.getGL2ES1(GL4bcImpl.java:24652)

If I explicitly cast the profile with
gles1 = (GL2ES1) glContext.getGL();

there is a nullpointer exception when accessing gles1, eg when setting the hint:
Exception in thread "main" java.lang.NullPointerException
        at com.jogamp.opengl.impl.gl4.GL4bcImpl.glHint(GL4bcImpl.java:9414)

The build I use in the stacktrace is this one, I tested several later builds and get the same result.
http://jogamp.org/deployment/archive/jogl-b136-2010-06-10_15-40-25/build/jogl-2.0-pre-20100611-linux-i586.zip

Best regards
/Richard