diff options
author | Brian Paul <brianp@vmware.com> | 2010-02-01 17:39:17 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-02-01 17:39:19 -0700 |
commit | c11f52cd6431c55567d78d54da7c9f51fbf91dec (patch) | |
tree | a09e240a060aeec94994f89b8461e2037eb65a99 | |
parent | cc14c14214adaa19d68ef875520f53e11ca6effc (diff) |
glsl1: check for GL version 3.1 and 3.2
We're also assuming GL 3.1 or 3.2 has all the backward-compatible GL
features. We should also check for GL_ARB_compatibility...
-rw-r--r-- | src/glean/tglsl1.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glean/tglsl1.cpp b/src/glean/tglsl1.cpp index 5312602..f659bbf 100644 --- a/src/glean/tglsl1.cpp +++ b/src/glean/tglsl1.cpp @@ -4481,7 +4481,9 @@ GLSLTest::isApplicable() const const char *version = (const char *) glGetString(GL_VERSION); if (strncmp(version, "2.0", 3) == 0 || strncmp(version, "2.1", 3) == 0 || - strncmp(version, "3.0", 3) == 0) { + strncmp(version, "3.0", 3) == 0 || + strncmp(version, "3.1", 3) == 0 || + strncmp(version, "3.2", 3) == 0) { return true; } else { |