Page 1 of 1

Allow creating an OpenGL 3.2 context, especially on MacOS

Posted: Fri Mar 03, 2017 3:07 pm
by Niffo
Please Fred, is it possible to be able to choose the "profile version" when using an OpenGLGadget, especially on MacOS.
As you know, MacOS does not allow to use OpenGL3.2+ functions/extensions if the context was not created at least with "OGL 3.2 Core".
It seems it is only the value of "NSOpenGLPFAOpenGLProfile" to change to "NSOpenGLProfileVersion3_2Core" if the context is created with Cocoa NSOpenGL
or the value of "kCGLPFAOpenGLProfile" to change to "kCGLOGLPVersion_3_2_Core" if the context is created with CGL.

Many thanks.