
They simply aren’t available.Īs far as I can tell this doesn’t handle anything past 3.2. If that was the reason you switched, the apparent lack of post-3.2 functions loaded by GLEW, then you’re not going to get them any more with GLLoad than with GLEW.

And glVertexAttribDivisor is a GL 3.3 function that’s why you’re not getting the function loaded. OSX simply does not support anything higher than 3.2. You don’t have a 4.3 context you have 4.3-capable hardware but that’s not the same thing. At least, it doesn’t advertise itself as such. gleIntLoad_Version_4_3_Comp() makes everything work as intended. ProcExtFromExtString((const char *)glGetString(GL_EXTENSIONS), gleIntExtensionMap, gleIntExtensionMapSize) Īs far as I can tell this doesn’t handle anything past 3.2. Use different methods if glGetStringi is available. If(!gleIntLoad_Version_3_2()) eCurrLoadStatus = LS_LOAD_FUNCTIONS_SOME If(!gleIntLoad_Version_3_2_Comp()) eCurrLoadStatus = LS_LOAD_FUNCTIONS_SOME If(iProfileMask & GL_CONTEXT_COMPATIBILITY_PROFILE_BIT) GlGetIntegerv(GL_CONTEXT_PROFILE_MASK, &iProfileMask) If(!gleIntLoad_Version_3_1()) eCurrLoadStatus = LS_LOAD_FUNCTIONS_SOME If(!gleIntLoad_Version_3_1_Comp()) eCurrLoadStatus = LS_LOAD_FUNCTIONS_SOME If(!gleIntLoad_Version_3_0()) eCurrLoadStatus = LS_LOAD_FUNCTIONS_SOME If(!gleIntLoad_Version_2_1()) eCurrLoadStatus = LS_LOAD_FUNCTIONS_SOME Įlse if(iMajorVersion = 3 & iMinorVersion < 2) GetGLVersion(&iMajorVersion, &iMinorVersion) Get the base functions that we need just to process OpenGL.

Clear the extensions, in case we loaded already. Int eCurrLoadStatus = LS_LOAD_FUNCTIONS_ALL LoadFunctions taken from the newest version of GLLoad: int LoadFunctions()

As far as I can tell the method is suppose to load the various functions specified for each version successively. When trying to figure out why I took a look in how GLLoad was implemented inside the LoadFunctions. GLLoad is now causing a problem when trying to use 3.3 core gl::VertexAttribDivisor which is undefined even on a 4.3 context. I recently converted from using GLEW to GLLoad from the Unofficial SDK - Due to the fact that GLEW doesn’t really support OSX.
