I'm currently playing around with OpenGL using JOGL and PyOpenGL on my MacBook Pro.
But very quickly I came to the point where a lot of example codes crash, because the address of glDebugMessageControl is not available. First I experienced the error using JOGL in Eclipse running this code.
But now i tried to invoke the same function with Python and I got the same error. So guess it is probably hardware related.
Why does OpenGL have no access to the "glDebugMessageController"?
glDebugMessageControlis an OpenGL 4.3 function, also exposed through the KHR_debug core extension. You must not call the function pointer for it unless you verified that the version of your GL context is at least 4.3, orKHR_debugis listed as available extension. If that is not the case, it would even be undefined behavior to call the function pointer even if it were notNULL.It's Apple-related. Apple stopped supporting OpenGL in favor of their own Metal graphics API, so OpenGL is stuck in a state from years ago on OSX. It doesn't support debug callbacks at all.