You can check and set in QGLFormat a version of OpenGL, but how to do the same for GLSL?
There is glGetString, but for GL_SHADING_LANGUAGE_VERSION you get undeclared identifier
const GLubyte* pVersion = glGetString(GL_VERSION);
//const GLubyte* pShaderVersion = glGetString(GL_SHADING_LANGUAGE_VERSION); //undeclared identifier
const GLubyte* pVersion = glGetString(GL_VERSION);
//const GLubyte* pShaderVersion = glGetString(GL_SHADING_LANGUAGE_VERSION); //undeclared identifier
To copy to clipboard, switch view to plain text mode
Bookmarks