The GLEW documentation states that you can check the available OpenGL version like this:
if (GLEW_VERSION_1_3)
{
/* Yay! OpenGL 1.3 is supported! */
}
So, as my code is using OpenGL 3.0 i used GLEW_VERSION_3_0 to see if the computer can run the program. However, when I tested it on an Thinkpad which uses an integrated Intel graphics card with support only up to OpenGL 2.1. GLEW_VERSION_3_0 was for some reason evaluated as true. Querying GL_MAJOR_VERSION and GL_MINOR_VERSION as well as GL_VERSION show the correct result (OpenGL 2.1).
I tested other GLEW_VERSION_X_X macros on this computer, you can see the results in the attached file.
Has anybody else experienced this before? It's not a big deal to create a workaround for it but I wonder what might cause it and if it happens on other graphic cards as well.