summaryrefslogtreecommitdiff
path: root/progs/fp/tri-depth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/fp/tri-depth2.c')
-rw-r--r--progs/fp/tri-depth2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/progs/fp/tri-depth2.c b/progs/fp/tri-depth2.c
index f309628283..6ed2307115 100644
--- a/progs/fp/tri-depth2.c
+++ b/progs/fp/tri-depth2.c
@@ -2,9 +2,8 @@
#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"
@@ -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);