diff options
author | Karl Schultz <[email protected]> | 2002-01-16 01:03:25 +0000 |
---|---|---|
committer | Karl Schultz <[email protected]> | 2002-01-16 01:03:25 +0000 |
commit | 40fac75370507924b013908ecaa5fb37e8501dba (patch) | |
tree | 41ee81a1dd0939427c52d98b4ae5010b8a0a8e14 /progs/tests/cva.c | |
parent | 3d587f643229a29f615d5047e47e4a3805930588 (diff) |
get tests working on windows (Robert Bergkvist)
Diffstat (limited to 'progs/tests/cva.c')
-rw-r--r-- | progs/tests/cva.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/progs/tests/cva.c b/progs/tests/cva.c index c6292f490f5..c15f3bd2412 100644 --- a/progs/tests/cva.c +++ b/progs/tests/cva.c @@ -1,4 +1,4 @@ -/* $Id: cva.c,v 1.3 2000/11/30 03:06:56 gareth Exp $ */ +/* $Id: cva.c,v 1.4 2002/01/16 01:03:25 kschultz Exp $ */ /* * Trivial CVA test, good for testing driver fastpaths (especially @@ -11,6 +11,9 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> +#ifdef _WIN32 +#include <windows.h> +#endif #define GL_GLEXT_LEGACY #include <GL/glut.h> @@ -130,7 +133,7 @@ int main( int argc, char **argv ) */ string = (char *) glGetString( GL_VERSION ); - if ( !strstr( string, "1.2" ) ) { + if ( (!strstr( string, "1.2" ))&&(!strstr(string,"1.3"))) { fprintf( stderr, "This program requires OpenGL 1.2 vertex arrays.\n" ); exit( -1 ); } |