summaryrefslogtreecommitdiff
path: root/retrace/glretrace.hpp
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-06-27 12:57:08 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-06-27 12:57:08 +0100
commite58cc502b778f8259ff464ccda2a45654c3ad8d1 (patch)
tree03a46e55654656624f41f9545430f8ad6b5a24fc /retrace/glretrace.hpp
parentc87689f191ddae088237866d68ff9d2db71d1102 (diff)
glretrace: Add a Context::profile inline helper.
Diffstat (limited to 'retrace/glretrace.hpp')
-rw-r--r--retrace/glretrace.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/retrace/glretrace.hpp b/retrace/glretrace.hpp
index 667d4aaa..c42961a2 100644
--- a/retrace/glretrace.hpp
+++ b/retrace/glretrace.hpp
@@ -49,6 +49,11 @@ struct Context {
GLuint activeProgram;
bool used;
+
+ inline glprofile::Profile
+ profile(void) const {
+ return wsContext->profile;
+ }
inline bool
hasExtension(const char *extension) const {