summaryrefslogtreecommitdiff
path: root/progs/samples/blendxor.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-02-10 20:27:49 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-02-10 20:28:08 +0000
commit52233f27bb99d21a085117990936d9c355e4ce08 (patch)
treeb714c289b8bcfb89cf02c640c7c491556484b01c /progs/samples/blendxor.c
parentfa9fcf5e8fc1a1fbd25b0943050c51104acb0397 (diff)
progs: Build samples dir with scons and glew.
Diffstat (limited to 'progs/samples/blendxor.c')
-rw-r--r--progs/samples/blendxor.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/progs/samples/blendxor.c b/progs/samples/blendxor.c
index 5bc4aa9bea..057143651f 100644
--- a/progs/samples/blendxor.c
+++ b/progs/samples/blendxor.c
@@ -10,13 +10,8 @@
#include <unistd.h>
#endif
#include <stdlib.h>
-#ifdef _WIN32
-#include <windows.h>
-#endif
-#define GL_GLEXT_LEGACY
-#define GL_GLEXT_PROTOTYPES
+#include <GL/glew.h>
#include <GL/glut.h>
-#include <GL/glext.h>
GLenum doubleBuffer;
@@ -176,6 +171,8 @@ int main(int argc, char **argv)
exit(1);
}
+ glewInit();
+
/* Make sure blend_logic_op extension is there. */
s = (char *) glGetString(GL_EXTENSIONS);
version = (char*) glGetString(GL_VERSION);