summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2011-11-03 01:32:35 +0800
committerJosé Fonseca <jose.r.fonseca@gmail.com>2011-11-17 15:50:25 +0000
commit9da53dece11e095f84123929f49742dd25ae842e (patch)
tree09ed7f70569040c86c7768c2484256da48b12fb8
parent8ef6697aaeb5a179b062b9b5af85623b0d5e320e (diff)
Add profile to tracer_context
The profile of the context, which is always PROFILE_COMPAT for now.
-rw-r--r--gltrace.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/gltrace.py b/gltrace.py
index c79b109..d4fb4a9 100644
--- a/gltrace.py
+++ b/gltrace.py
@@ -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