Mesa (master): progs/demos: update GL version test to accept GL 3.x

Brian Paul brianp at kemper.freedesktop.org
Wed Feb 17 16:02:44 UTC 2010


Module: Mesa
Branch: master
Commit: 0583c29313a4bcd01cc8d30846c815cdc775cb16
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0583c29313a4bcd01cc8d30846c815cdc775cb16

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Feb 17 09:02:33 2010 -0700

progs/demos: update GL version test to accept GL 3.x

---

 progs/demos/fslight.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/progs/demos/fslight.c b/progs/demos/fslight.c
index 395b7ca..91a5a80 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);
    }
 




More information about the mesa-commit mailing list