Re: GL-CL interoperability in OSX
Posted by
Sven Gothel on
Apr 20, 2011; 1:14pm
URL: https://forum.jogamp.org/GL-CL-interoperability-in-OSX-tp2837450p2842695.html
On Wednesday, April 20, 2011 03:24:25 am ac [via jogamp] wrote:
>
> It seems that I cannot create a GL3/GL4 context. If I do:
>
> profile = GLProfile.getDefault();
> ...
> GLDrawableFactory factory = GLDrawableFactory.getFactory(profile);
> drawable = factory.createGLDrawable(win);
> context = drawable.createContext(null);
>
> my profile is created as [GL2/GL2]. If I try profile =
> GLProfile.get(GLProfile.GL4bc), or any other profile after GL3, I get a
> "java.lang.RuntimeException: Cannot get a valid OpenGL profile".
Sure ..
And since JOGL tries to get the highest fixed function profile,
I guess you are out of luck. Run test.sh as recommended in our FAQ/bug-reports.
We also have this getAvailableProfiles .. check the jogl core junit tests.
profile = GLProfile.get(GLProfile.GL4bc);
profile = GLProfile.getMaximum();
OSX ? Thought they just offered GL3 support ?
However, we haven't touched this yet, ie our current OSX GLContext selection
code may not recognize a GL3* profile.
Does your OSX machine have OpenGL 3* support ?
~Sven