From 9da53dece11e095f84123929f49742dd25ae842e Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 3 Nov 2011 01:32:35 +0800 Subject: [PATCH] Add profile to tracer_context The profile of the context, which is always PROFILE_COMPAT for now. --- gltrace.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.45.2