X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=progs%2Ftests%2Fcva.c;h=a47b2a9319a3f6f09975d7360e58ec2760c70c74;hb=789fae163dbdbd7669b0442bd1a3ca4fea4ec259;hp=b596a5a4d3ec73bff3462164c9387ff46592be89;hpb=8525fae3b8276441883604a1ced32a46b85d5adf;p=mesa.git diff --git a/progs/tests/cva.c b/progs/tests/cva.c index b596a5a4d3e..a47b2a9319a 100644 --- a/progs/tests/cva.c +++ b/progs/tests/cva.c @@ -1,4 +1,3 @@ -/* $Id: cva.c,v 1.6 2003/11/23 10:27:10 keithw Exp $ */ /* * Trivial CVA test, good for testing driver fastpaths (especially @@ -11,7 +10,11 @@ #include #include #include -#include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ +#ifdef __VMS +# include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ +#else +# include /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */ +#endif #ifdef _WIN32 #include #endif @@ -115,6 +118,7 @@ int main( int argc, char **argv ) { GLenum type; char *string; + double version; glutInit( &argc, argv ); @@ -134,9 +138,8 @@ int main( int argc, char **argv ) */ string = (char *) glGetString( GL_VERSION ); - if ( !strstr(string, "1.2") && - !strstr(string, "1.3") && - !strstr(string, "1.4")) { + version = atof(string); + if ( version < 1.2 ) { fprintf( stderr, "This program requires OpenGL 1.2 vertex arrays.\n" ); exit( -1 ); }