progs/perf: accept GL3.x also
authorKeith Whitwell <keithw@vmware.com>
Wed, 23 Sep 2009 18:03:07 +0000 (19:03 +0100)
committerKeith Whitwell <keithw@vmware.com>
Thu, 24 Sep 2009 15:43:15 +0000 (16:43 +0100)
progs/perf/glmain.c

index 22b404e..69cdbce 100644 (file)
@@ -121,8 +121,9 @@ PerfShaderProgram(const char *vertShader, const char *fragShader)
 
    {
       const char *version = (const char *) glGetString(GL_VERSION);
-      if (version[0] != '2' || version[1] != '.') {
-         fprintf(stderr, "Error: GL version 2.x required\n");
+      if ((version[0] != '2' && 
+           version[0] != '3') || version[1] != '.') {
+         fprintf(stderr, "Error: GL version 2.x or better required\n");
          exit(1);
       }
    }