Re: OpenGL 3 support on Mac OSX Lion
Posted by
Sven Gothel on
Sep 23, 2012; 4:44pm
URL: https://forum.jogamp.org/OpenGL-3-support-on-Mac-OSX-Lion-tp4026240p4026251.html
On 09/22/2012 09:53 PM, robcavin [via jogamp] wrote:
> When running an app with the current JOGL release on Mac OSX 10.7.4 with an
> AMD Radeon HD 6750M, I'm unable to use glGenVertexArrays. (Get the
> unsupported feature error from glGetError()). I know the Radeon card supports
> up to GL4.1, so I doubt that's the issue.
>
> From doing a good deal of searching I understand that previous versions of Mac
> OSX did not support much beyond version 2.1 and shader version 1.2. However
> my understanding was that Lion should support most features of 3.0. Using a
> GL Caps viewer I see that all the listed functions of 3.0 are supported, but
> still no shader version beyond 1.2. I also don't specifically see
> glGenVertexArrays as a supported function, though my understanding was this
> was a GL 3.0 addition. I did see that Apple provided a glGenVertexArraysAPPLE
> extension in the past.
>
> I've seen some discussions about this but couldn't really come to a
> conclusion. Does JOGL take advantage of support beyond 2.1 on OSX Lion?
>
> I know that most notebooks also have an integrated graphics chip for simple
> rendering and a more powerful discrete chip for advanced rendering. Is there
> a need to manually select which adapter to use?
OSX's GL3 core is supported by JOGL,
simply request it via GLProfile.GL3
or that max programmable getter of GLProfile.
See the output here:
<
https://jogamp.org/chuck/job/jogl/812/label=macosx-10_6-x86_64-nvidia/testReport/com.jogamp.opengl.test.junit.jogl.acore/TestGLProfile01NEWT/testGL3_2/?>
But be aware Apple doesn't support a compatibility profile.
~Sven