summaryrefslogtreecommitdiffstats
path: root/progs/fp/tri-depthwrite2.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-06-11 13:19:34 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-06-11 13:19:34 +0100
commite3f14f2f3bdd66400d02f0f9076593db609874a8 (patch)
tree32d57f10952a453fcd19ef884d6eb821e1069727 /progs/fp/tri-depthwrite2.c
parent48d816b8fff5d01b8c35bd2f933220e41d976e4c (diff)
downloadexternal_mesa3d-e3f14f2f3bdd66400d02f0f9076593db609874a8.zip
external_mesa3d-e3f14f2f3bdd66400d02f0f9076593db609874a8.tar.gz
external_mesa3d-e3f14f2f3bdd66400d02f0f9076593db609874a8.tar.bz2
progs: Port fp programs to GLEW.
Diffstat (limited to 'progs/fp/tri-depthwrite2.c')
-rw-r--r--progs/fp/tri-depthwrite2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/progs/fp/tri-depthwrite2.c b/progs/fp/tri-depthwrite2.c
index 5547092..3c0b4d3 100644
--- a/progs/fp/tri-depthwrite2.c
+++ b/progs/fp/tri-depthwrite2.c
@@ -2,7 +2,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#define GL_GLEXT_PROTOTYPES
+#include <GL/glew.h>
#include <GL/glut.h>
@@ -16,7 +16,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);
}
@@ -97,6 +97,8 @@ int main(int argc, char **argv)
exit(1);
}
+ glewInit();
+
Init();
glutReshapeFunc(Reshape);