summaryrefslogtreecommitdiff
path: root/helpers/glprofile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/glprofile.hpp')
-rw-r--r--helpers/glprofile.hpp10
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);