From a58065d4e2fc29644d804c92be773731242664c5 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 10 Mar 2009 13:11:23 +0000 Subject: progs/tests: compile with SCons and glew Also get mingw cross-compilation of these tests working --- progs/tests/vparray.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'progs/tests/vparray.c') diff --git a/progs/tests/vparray.c b/progs/tests/vparray.c index 580a670f8e..9c2fad97d9 100644 --- a/progs/tests/vparray.c +++ b/progs/tests/vparray.c @@ -12,7 +12,7 @@ #include #include #include -#define GL_GLEXT_PROTOTYPES +#include "GL/glew.h" #include "GL/glut.h" #define MAXVERTS 10000 @@ -280,6 +280,7 @@ int main(int argc, char **argv) glutInitWindowPosition(0, 0); glutInitWindowSize(400, 400); if (glutCreateWindow("Isosurface") <= 0) { + glewInit(); exit(0); } glutReshapeFunc(Reshape); -- cgit v1.2.3 From 90c880f08996cce57273544d8ba11b56ce2a06f3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 17 Apr 2009 09:15:58 -0600 Subject: demos: move glewInit() call, fixes crash/bug 21247 --- progs/tests/vparray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'progs/tests/vparray.c') diff --git a/progs/tests/vparray.c b/progs/tests/vparray.c index 9c2fad97d9..af9b62d33e 100644 --- a/progs/tests/vparray.c +++ b/progs/tests/vparray.c @@ -280,9 +280,9 @@ int main(int argc, char **argv) glutInitWindowPosition(0, 0); glutInitWindowSize(400, 400); if (glutCreateWindow("Isosurface") <= 0) { - glewInit(); exit(0); } + glewInit(); glutReshapeFunc(Reshape); glutKeyboardFunc(Key); glutSpecialFunc(SpecialKey); -- cgit v1.2.3