GLEW finds OpenGL 3.0 version only while OpenGL 3.1 (Core Profile) is available through glXCreateContextAttribsARB () for new intel mesa drivers.
GLEW doesn't support core profiles. Perhaps that's the reason.
Please attach the output of glewinfo.
Two comments on this:
Mesa itself is reporting "OpenGL version 3.0 Mesa 9.1-devel (git-66ea6e8)", not 3.1 in compatibility context mode, via glewinfo.
It appears that the 3.1 support in Mesa is core-only, going by this news:
I'm inclined to close this as "not a GLEW bug", with the acknowledgement that core profile support is a known GLEW bug/limitation.
It seems compatibility mode would take a lot of time to be implemented in mesa. It would be nice if all software uses glew to determine OpenGL version will benefit from new free mesa drivers for r600 and intel. So it seems it is not a bug but an enhancement request.
Yes, agreed and understood. Core support has long been the #1 request/bug in GLEW, it just happens that it hasn't overlapped well enough with my day job, to do much about that.
Closing as a duplicate of the "GLEW ought to support Core profile" bug.
Please add a link to duplicating bug.