[PATCH 03/10] Add profile to tracer_context

Chia-I Wu olvaffe at gmail.com
Tue Nov 8 14:13:13 PST 2011


The profile of the context, which is always PROFILE_COMPAT for now.
---
 gltrace.py |    7 ++++++-
 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
-- 
1.7.6.3



More information about the apitrace mailing list