Hello all,
I am having a bit of an issue with my personal game engine, more specifically with GLFW's context & GLEW's initialisation.
I started off supporting the default context that my PC would support (OpenGL 4.4) but as I have now decided to make it cross-platform made the decision to settle for & comply with the specifications of OpenGL 3.3 (which is supported by my 2010 MacBook Pro).
I have managed to setup an OpenGL 3.3 context using GLFW' and the returned "GL_VERSION" is the expected value - on the other hand, it would appear that my GLEW is not properly initialised and will result in unhandled exceptions when trying to call certain functions.
For instance, my shader compilation code performs reflection to extract the vertex attribute name and bind them to pre-defined bindings :
- OpenGL 4.4 : glGetProgramResourceName
- OpenGL 3.3 : glGetActiveAttrib
For some reason obscure I am finding that the OpenGL 4.4 call works (glGetProgramResourceName) while the OpenGL 3.3 call (glGetActiveAttrib) results in a crash.
Any ideas what could be the cause of that and/or through what mechanic GLEW binds its functions?
Thanks in advance,