diff options
author | José Fonseca <[email protected]> | 2009-06-11 13:19:34 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-06-11 13:19:34 +0100 |
commit | e3f14f2f3bdd66400d02f0f9076593db609874a8 (patch) | |
tree | 32d57f10952a453fcd19ef884d6eb821e1069727 /progs/fp/tri-param.c | |
parent | 48d816b8fff5d01b8c35bd2f933220e41d976e4c (diff) |
progs: Port fp programs to GLEW.
Diffstat (limited to 'progs/fp/tri-param.c')
-rw-r--r-- | progs/fp/tri-param.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/progs/fp/tri-param.c b/progs/fp/tri-param.c index f3e55af3f1b..57443d71bd0 100644 --- a/progs/fp/tri-param.c +++ b/progs/fp/tri-param.c @@ -2,9 +2,9 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> -#define GL_GLEXT_PROTOTYPES +#include <GL/glew.h> #include <GL/glut.h> -#include "GL/gl.h" + static void Init( void ) { @@ -15,7 +15,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); } @@ -104,6 +104,8 @@ int main(int argc, char **argv) exit(1); } + glewInit(); + Init(); glutReshapeFunc(Reshape); |