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

This commit is contained in:
Brian Paul 2010-02-17 09:02:33 -07:00
parent 5b392ff49a
commit 0583c29313
1 changed files with 2 additions and 2 deletions

View 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);
}