progs/demos: update GL version test to accept GL 3.x
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user