I am creating OpenGL context with version 3.2 on Windows 7.Then I initiate GLEW:
GLenum err = glewInit();
glGetError();
if (err != GLEW_OK){
throw Exception(std::string((const char*)glewGetErrorString(err)));
}
This part passes ok in all test cases.
Next I query for the GL version to make sure this is the expected one:
GLint major =0, minor = 0;
GL_ASSERT(glGetIntegerv(GL_MAJOR_VERSION, &major ));
GL_ASSERT(glGetIntegerv(GL_MINOR_VERSION, &minor ));
On 2 machines out of 4 I am getting "invalid enumerant" already at the first query:
GL_ASSERT(glGetIntegerv(GL_MAJOR_VERSION, &major ));
The tested machines hardware :
NoteBook - Nvidia GeForce GT 630m ,OpenGL 4.3 - fails.
Desktop PC -Nvidia GeForce 550GTX ,OpenGL 4.3 -fails.
Desktop PC -Nvidia Quadro K4000 ,OpenGL 4.4 -passes.
Desktop PC -Nvidia Quadro 4000 ,OpenGL 4.3 -passes.
This is really weird as all of these machines have latest drivers installed and run OpenGL based apps up to their highest supported by the installed driver just fine.Also,if I don't perform the query for the version the rest of the app works ok.Why does it happen?