diff options
author | José Fonseca <jfonseca@vmware.com> | 2015-01-05 20:45:41 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2015-01-05 20:45:41 +0000 |
commit | b0c597293060329afc1ee10d4062d30a2b272f78 (patch) | |
tree | d6145bcaae77acdaa10b0a0458fd995b56057aad /helpers | |
parent | c49a6953b0f5cbfa2d20de4246a87efdc3b0aa52 (diff) |
gltrace: Use glprofile::Profile when tracing.
Less duplication, and hopefully more future proof.
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/glprofile.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/helpers/glprofile.hpp b/helpers/glprofile.hpp index 1ff922cb..78fcca96 100644 --- a/helpers/glprofile.hpp +++ b/helpers/glprofile.hpp @@ -60,6 +60,16 @@ struct Profile { } inline bool + compat(void) { + return api == API_GL && !core; + } + + inline bool + es(void) const { + return api == API_GLES; + } + + inline bool versionGreaterOrEqual(unsigned refMajor, unsigned refMinor) const { return major > refMajor || (major == refMajor && minor >= refMinor); |