As this is the process to query extension in glew.c it does not work with an opengl 3 core/forward context.
glGetStringi must be used
See attached glew.c modified from 1.6.0
I had an issue related to this bug (with an OpenGL 4.4 context):
The GL_EXTENSIONS causes an GL_INVALID_ENUM which is not handled by GLEW. Instead, I caught it at a different point in my code where I checked for a previous GL function's success. So independent of this error, it would be a good idea that GLEW clears all errors it may have produced by calling glGetError() once after initialization.
This bug is 3 years old and now causing serious problems on OS X :( Why the push out to 1.11.0? I'm going to take a look at it.
I am also very confused why this hasn't been fixed yet.
Nigel - any update on this set of bugs relating to GLEW completely failing in core contexts?
As a developer, this lack of core context support is a deal breaker for using GLEW so we have to do our own extension loading (still) :( 2010 was 5 years ago which is a lot of pushing out of a bug....
Indeed this issue of core context support has dragged on for a long time.
There are two github pull requests I'm currently evaluating:
Further discussion, refinement, clarification and testing of these would be helpful.
I went ahead and organized these into a "GLEW 2.0" milestone:
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.