mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 22:40:34 +01:00
progs/demos: update GL version test to accept GL 3.x
This commit is contained in:
parent
5b392ff49a
commit
0583c29313
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue