From: Brian Paul Date: Wed, 17 Feb 2010 16:02:33 +0000 (-0700) Subject: progs/demos: update GL version test to accept GL 3.x X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0583c29313a4bcd01cc8d30846c815cdc775cb16;p=mesa.git progs/demos: update GL version test to accept GL 3.x --- diff --git a/progs/demos/fslight.c b/progs/demos/fslight.c index 395b7caa2c1..91a5a801327 100644 --- a/progs/demos/fslight.c +++ b/progs/demos/fslight.c @@ -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); }