Remove CVS keywords.
[mesa.git] / progs / tests / cva.c
index 3f7960f53b6d1daee610178eda8d0e45f01388fe..a47b2a9319a3f6f09975d7360e58ec2760c70c74 100644 (file)
@@ -1,4 +1,3 @@
-/* $Id: cva.c,v 1.7 2003/12/08 09:03:35 joukj Exp $ */
 
 /*
  * Trivial CVA test, good for testing driver fastpaths (especially
@@ -119,6 +118,7 @@ int main( int argc, char **argv )
 {
    GLenum type;
    char *string;
+   double version;
 
    glutInit( &argc, argv );
 
@@ -138,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 );
    }