diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2011-11-03 01:32:35 +0800 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-11-17 15:50:25 +0000 |
commit | 9da53dece11e095f84123929f49742dd25ae842e (patch) | |
tree | 09ed7f70569040c86c7768c2484256da48b12fb8 | |
parent | 8ef6697aaeb5a179b062b9b5af85623b0d5e320e (diff) |
Add profile to tracer_context
The profile of the context, which is always PROFILE_COMPAT for now.
-rw-r--r-- | gltrace.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -109,7 +109,12 @@ class GlTracer(Tracer): print '#include "gltrace.hpp"' print + print 'enum gl_context_profile {' + print ' PROFILE_COMPAT,' + print '};' + print print 'struct tracer_context {' + print ' enum gl_context_profile profile;' print ' bool user_arrays;' print ' bool user_arrays_arb;' print ' bool user_arrays_nv;' @@ -126,7 +131,7 @@ class GlTracer(Tracer): print 'static tracer_context *__get_context(void)' print '{' print ' // TODO return the context set by other APIs (GLX, EGL, and etc.)' - print ' static tracer_context __ctx = { false, false, false };' + print ' static tracer_context __ctx = { PROFILE_COMPAT, false, false, false };' print ' return &__ctx;' print '}' print |