tags:

views:

176

answers:

1

I am developeing an opengl application and need to use the glew libarire. I am useing Visual Studio C++ 2008 Express.I compiled a progarm using gl.h, glu.h, and glut.h just fine and it does what it's suppoesed to do. But after including glew.h it still compiles just fine, but when I try:

glewInit();
if (glewIsSupported("GL_VERSION_2_0"))
    printf("Ready for OpenGL 2.0\n");
else {
    printf("OpenGL 2.0 not supported\n");
}

it keeps printing "OpenGL 2.0 not supported". I tried to change it to glewIsSupported("GL_VERSION_1_3") or even glewIsSupported("GL_VERSION_1_0") and it still returns false meaning that it does not support opengl version whatever. I have a Radeon HD 5750 so it should support opengl 3.1 and some of the features of 3.2. I know that know that all the device drivers are installed properly since I was able to run all the programs in the Radeon sdk provided by ATI. I also installed Opengl Extensions Viewer 3.15 and it says opengl Version 3.1 Ati Driver 6.14.10.9116. I tired all of them GLEW_VERSION_1_1 GLEW_VERSION_1_2 GLEW_VERSION_1_3 GLEW_VERSION_2_0 GLEW_VERSION_2_1 GLEW_VERSION_3_0 and all of these return false. Any other sugestings. I even tried GLEW_ARB_vertex_shader && GLEW_ARB_fragment_shader and this is returning false as well. If anyone can help I would appreciate it. Thanks ahead of time.

+2  A: 

glewIsSupported is meant to check and see if specific features are supported. You want something more like...

if (GLEW_VERSION_1_3)
{
    /* Yay! OpenGL 1.3 is supported! */
}
Pace