Upon querying the OpenGL state for the current version using glGetString(GL_VERSION) I get the result correctly as version 3.1
However my compiler( I use Visual C++ 2005) throws an error at me saying GL_SHADNG_LANGUAGE_VERSION is an undeclared identifier, when i attempt to get the GLSL version in the same way.
I know that GL_SHADING_LANGUAGE_VERSION is only defined after version 2.0, but im running 3.1! why does this error occur? Can someone help me quick please.
I also checked with the OpenGL extensions viewer
this is the output i get :
Renderer: GeForce 8600 GTS/PCI/SSE2
Vendor: NVIDIA Corporation
Memory: 256 MB
Shading language version: 1.40 NVIDIA via Cg compiler