Login  Register

Re: OpenGL 4 status

Posted by Michael Bien on May 21, 2011; 9:55pm
URL: https://forum.jogamp.org/OpenGL-4-status-tp2969055p2970170.html

On 05/21/2011 05:08 PM, Job Zwiers [via jogamp] wrote:

> Hi,
>
> Can someone tell me what the status of Jogl support for OpenGL 4 is at
> the moment?
> There is a GL4 interface already for some time, but (on my OpenGL4
> capable system), the following fails:
>
> GL4 gl = drawable.getGL().getGL4();
>
> Message: Exception in thread "AWT-EventQueue-0"
> javax.media.opengl.GLException: Not a GL4 implementation
>         at jogamp.opengl.gl4.GL4bcImpl.getGL4(GL4bcImpl.java:32456)
>
>  A similar line GL3 gl = drawable.getGL().getGL3()  works fine;
> in that case, gl.glGetString(GL3.GL_VERSION); returns OGL version 3.3
>
> A tool like GPU Caps Viewer reports OGL 4.1, and it does run the OGL4
> tesselation demo fine.
>
> System:
> Jogl build: b391
> NVidia GTX 460, driver: 270.61(whql),  Win7 64 bits
>
> Any ideas?
>
> Job

did you request the GL4 profile*?

GLProfile profile = GLProfile.get(GLProfile.GL4);

//configure context
GLCapabilities capabilities = new GLCapabilities(profile);
...

//initialize a GLDrawable of your choice
GLCanvas canvas = new GLCanvas(capabilities);


*old blog entry about profiles:
http://michael-bien.com/mbien/entry/jogl_2_opengl_profiles_explained

best regards,
michael

--
- - - -
http://michael-bien.com