X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=progs%2Ffp%2Ftri-depth2.c;h=6ed23071157ce02f0e17cc08b882d9789689ecfc;hb=ebf2710b2fd21ae9a6604c015ca7a948589f5a8c;hp=f309628283313f6676853ba98b5174a680de14ee;hpb=e516654dec111d8d781013ee537d5b37042fa933;p=mesa.git diff --git a/progs/fp/tri-depth2.c b/progs/fp/tri-depth2.c index f3096282833..6ed23071157 100644 --- a/progs/fp/tri-depth2.c +++ b/progs/fp/tri-depth2.c @@ -2,9 +2,8 @@ #include #include #include -#define GL_GLEXT_PROTOTYPES +#include #include -#include "GL/gl.h" @@ -21,7 +20,7 @@ static void Init( void ) ; GLuint modulateProg; - if (!glutExtensionSupported("GL_ARB_fragment_program")) { + if (!GLEW_ARB_fragment_program) { printf("Error: GL_ARB_fragment_program not supported!\n"); exit(1); } @@ -106,6 +105,8 @@ int main(int argc, char **argv) exit(1); } + glewInit(); + Init(); glutReshapeFunc(Reshape);