diff options
author | Roland Scheidegger <[email protected]> | 2006-11-22 19:37:21 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2006-11-22 19:37:21 +0000 |
commit | 22b74ff2b7995ad9be806695c532a750a102888c (patch) | |
tree | 198cd48a3db6fe3cec85d560aa0525934d493184 | |
parent | b0d8b137771e51920ead94191ac9e6425fbfc2e3 (diff) |
fix the gl version test
-rw-r--r-- | progs/tests/cva.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/progs/tests/cva.c b/progs/tests/cva.c index 3f7960f53b6..c7677990bff 100644 --- a/progs/tests/cva.c +++ b/progs/tests/cva.c @@ -1,4 +1,4 @@ -/* $Id: cva.c,v 1.7 2003/12/08 09:03:35 joukj Exp $ */ +/* $Id: cva.c,v 1.8 2006/11/22 19:37:21 sroland Exp $ */ /* * Trivial CVA test, good for testing driver fastpaths (especially @@ -119,6 +119,7 @@ int main( int argc, char **argv ) { GLenum type; char *string; + double version; glutInit( &argc, argv ); @@ -138,9 +139,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 ); } |