summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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