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/texcmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'progs/tests/texcmp.c') diff --git a/progs/tests/texcmp.c b/progs/tests/texcmp.c index 6e822fb689..52c504a318 100644 --- a/progs/tests/texcmp.c +++ b/progs/tests/texcmp.c @@ -7,7 +7,7 @@ #include #include #include -#define GL_GLEXT_PROTOTYPES 1 +#include #include #include "readtex.c" /* I know, this is a hack. */ @@ -371,6 +371,7 @@ int main( int argc, char *argv[] ) glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE ); if (glutCreateWindow(argv[0]) <= 0) { + glewInit(); printf("Couldn't create window\n"); exit(0); } -- cgit v1.2.3 From ea26f28c8fd68593a1f47053e04e9d6e110a23b9 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 3 Sep 2009 11:33:53 +1000 Subject: tests/texcmp: glewInit in wrong place --- progs/tests/texcmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'progs/tests/texcmp.c') diff --git a/progs/tests/texcmp.c b/progs/tests/texcmp.c index 52c504a318..d1e829d1b7 100644 --- a/progs/tests/texcmp.c +++ b/progs/tests/texcmp.c @@ -371,11 +371,11 @@ int main( int argc, char *argv[] ) glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE ); if (glutCreateWindow(argv[0]) <= 0) { - glewInit(); printf("Couldn't create window\n"); exit(0); } + glewInit(); gl_version = atof( (const char *) glGetString( GL_VERSION ) ); if ( (gl_version < 1.3) && !glutExtensionSupported("GL_ARB_texture_compression") ) { -- cgit v1.2.3