summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-06-25 14:28:09 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-06-25 14:28:09 +0100
commit53ea8108dd795a58b3a147e56a92afd21dc145f1 (patch)
treeb124a47973dfd8a70cb621705029aae88670dc96 /helpers
parentd1f3582d14a1a496c248262ed873de34ab47bb58 (diff)
glretrace: Fix occlusion query support detection.
GL_ARB_occlusion_query was made part of core OpenGL 1.5. Furthermore we don't use the *ARB entry-points, so we really rely on the core support. Futhermore, on Mac OS, core 3.2+ profiles do not list core extensions, so we were wrongly assuming it was missing. Fixes #358.
Diffstat (limited to 'helpers')
-rw-r--r--helpers/glprofile.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/helpers/glprofile.hpp b/helpers/glprofile.hpp
index be2a111f..397777dd 100644
--- a/helpers/glprofile.hpp
+++ b/helpers/glprofile.hpp
@@ -84,6 +84,11 @@ struct Profile {
(major == refMajor && minor >= refMinor);
}
+ inline bool
+ versionGreaterOrEqual(Api refApi, unsigned refMajor, unsigned refMinor) const {
+ return api == refApi && versionGreaterOrEqual(refMajor, refMinor);
+ }
+
bool
matches(const Profile expected) const;