diff options
author | José Fonseca <jfonseca@vmware.com> | 2015-01-05 20:22:44 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2015-01-05 20:22:44 +0000 |
commit | c49a6953b0f5cbfa2d20de4246a87efdc3b0aa52 (patch) | |
tree | 3f93691cd60bf40276f14dd40b9284f20476e0ca /helpers | |
parent | a44df7a4fb533e904e4092ca6d67c4cfdf90dab6 (diff) |
glretrace: Ensure we get a matching context.
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/glprofile.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helpers/glprofile.hpp b/helpers/glprofile.hpp index dc35400b..1ff922cb 100644 --- a/helpers/glprofile.hpp +++ b/helpers/glprofile.hpp @@ -65,6 +65,13 @@ struct Profile { (major == refMajor && minor >= refMinor); } + inline bool + matches(const Profile expected) const { + return api == expected.api && + versionGreaterOrEqual(expected.major, expected.minor) && + core == expected.core; + } + // Comparison operator, mainly for use in std::map inline bool operator == (const Profile & other) const { |