summaryrefslogtreecommitdiff
path: root/helpers/glprofile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/glprofile.hpp')
-rw-r--r--helpers/glprofile.hpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/helpers/glprofile.hpp b/helpers/glprofile.hpp
index e8d9edbd..dc35400b 100644
--- a/helpers/glprofile.hpp
+++ b/helpers/glprofile.hpp
@@ -67,10 +67,19 @@ struct Profile {
// Comparison operator, mainly for use in std::map
inline bool
+ operator == (const Profile & other) const {
+ return major == other.major &&
+ minor == other.minor &&
+ api == other.api &&
+ core == other.core;
+ }
+
+ // Comparison operator, mainly for use in std::map
+ inline bool
operator < (const Profile & other) const {
- return api < other.api ||
- major < other.major ||
+ return major < other.major ||
minor < other.minor ||
+ api < other.api ||
core < other.core;
}
};
@@ -80,6 +89,10 @@ std::ostream &
operator << (std::ostream &os, const Profile & profile);
+Profile
+getCurrentContextProfile(void);
+
+
} /* namespace glprofile */