   GLSL implementation
  I have a problem when trying to implement GLSL Shaders in my OpenGL program.I am not using GLUT.I'm trying to use example code from Lighthouse3D's GLSL site.I am using this function to init the shaders.GLhandleARB v,f,p;GLvoid SetShaders() {char *vs = NULL,*fs = NULL;v = glCreateShaderObjectARB(GL_VERTEX_SHADER_ARB);f = glCreateShaderObjectARB(GL_FRAGMENT_SHADER_ARB);vs = textFileRead("phong.vert");fs = textFileRead("phong.frag");const char * ff = fs;const char * vv = vs;glShaderSourceARB(v, 1, &vv,NULL);glShaderSourceARB(f, 1, &ff,NULL);free(vs);free(fs);glCompileShaderARB(v);glCompileShaderARB(f);p = glCreateProgramObjectARB();glAttachObjectARB(p,f);glAttachObjectARB(p,v);glLinkProgramARB(p);}And then activate shaders with:glUseProgramObjectARB(p);DrawSphere();glUseProgramObjectARB(0);I'm not quite sure where to call the function but i've tried itin both InitGL and DrawGLScene with the same problem, an error that the program has to shut down.Can anyone please enlighten me ?   
  Does your hardware support GLSL?.the SetShaders() function should go in InitGlScene()and:glUseProgramObjectARB(p);DrawSphere();glUseProgramObjectARB(0);should go in DrawGLScene();have you tried running the source from LightHouse3Ds website?:GlutGLSLMVHFredrik   ;  My first question is are you using GLEE, GLEW or pulling the functions you need out of the extension file yourself? with function pointers?   ;  Are the pointers to those extensions valid?   ;  My gfx card supports GLSL and I am using GLEW for extensions.I am also using Dev-C++ and downloaded a GLEW DevPak, maybe that DevPak is to old and not supporting some stuff ?   ;  Run your app in the debug environment and make sure there are address assigned to the extension functions if there NULL, your odviouslly doing something wrong.   ;  And what a mistake it was. Forgot to run glewInit();Thanks anyway !   