summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-03-13 16:30:44 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-03-13 16:30:44 +0000
commit8a460c5003ff2626de410572bc9a82bbc8a56a66 (patch)
treec361b61447dd72fe82a49510e098a2d0d508c86b /helpers
parent56c419c55aef7105bf4991a2b9265c21614d443a (diff)
glretrace: Be more forgiving with forward-compatible contexts on MacOSX.
Diffstat (limited to 'helpers')
-rw-r--r--helpers/glprofile.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/helpers/glprofile.hpp b/helpers/glprofile.hpp
index f6ecf578..d81fe863 100644
--- a/helpers/glprofile.hpp
+++ b/helpers/glprofile.hpp
@@ -102,7 +102,13 @@ struct Profile {
versionGreaterOrEqual(expected.major, expected.minor) &&
(core == expected.core ||
(expected.major == 3 && expected.minor == 1)) &&
- forwardCompatible <= expected.forwardCompatible;
+#ifdef __APPLE__
+ /* All 3.2+ contexts on MacOSX are forward-compatible */
+ true
+#else
+ forwardCompatible <= expected.forwardCompatible
+#endif
+ ;
}
// Comparison operator, mainly for use in std::map