In qgl.h QT 4.7 has OpenGLVersionFlag up to 4.0. To get core profile for 4.1 I used gl3w from https://github.com/skaslev/gl3w. With it shaders compile fine, but QT produces : warning C7568: #version 410 not fully supported on current GPU target profile. Probaly QT has the same bug as glew:- I havn't check this, but that's possible that both use the same approach to opengl wraping.glGetString(GL_EXTENSIONS) being deprecated, an error is generated, no extension is returned and then GLEW fails to initialize. So currently, it’s not recommended to use GLEW with a core profile context.
Bookmarks