progs/demos: update GL version test to accept GL 3.x
This commit is contained in:
parent
5b392ff49a
commit
0583c29313
|
@ -467,8 +467,8 @@ Init(void)
|
||||||
const char *version;
|
const char *version;
|
||||||
|
|
||||||
version = (const char *) glGetString(GL_VERSION);
|
version = (const char *) glGetString(GL_VERSION);
|
||||||
if (version[0] != '2' || version[1] != '.') {
|
if (version[0] == '1') {
|
||||||
printf("This program requires OpenGL 2.x, found %s\n", version);
|
printf("This program requires OpenGL 2.x or higher, found %s\n", version);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue