progs/perf: accept GL3.x also

This commit is contained in:
Keith Whitwell
2009-09-23 19:03:07 +01:00
parent 5f06064b61
commit 6e0b56edf8
+3 -2
View File
@@ -121,8 +121,9 @@ PerfShaderProgram(const char *vertShader, const char *fragShader)
{
const char *version = (const char *) glGetString(GL_VERSION);
if (version[0] != '2' || version[1] != '.') {
fprintf(stderr, "Error: GL version 2.x required\n");
if ((version[0] != '2' &&
version[0] != '3') || version[1] != '.') {
fprintf(stderr, "Error: GL version 2.x or better required\n");
exit(1);
}
}