progs/demos: update GL version test to accept GL 3.x
authorBrian Paul <brianp@vmware.com>
Wed, 17 Feb 2010 16:02:33 +0000 (09:02 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Feb 2010 16:02:33 +0000 (09:02 -0700)
progs/demos/fslight.c

index 395b7caa2c1355f29c74b5b3b09488eabf4663c0..91a5a801327d1ee254d49151e0b7780215227d28 100644 (file)
@@ -467,8 +467,8 @@ Init(void)
    const char *version;
 
    version = (const char *) glGetString(GL_VERSION);
-   if (version[0] != '2' || version[1] != '.') {
-      printf("This program requires OpenGL 2.x, found %s\n", version);
+   if (version[0] == '1') {
+      printf("This program requires OpenGL 2.x or higher, found %s\n", version);
       exit(1);
    }