diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-05-28 13:25:55 +0100 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-05-28 13:25:55 +0100 |
commit | 466753b9c94f4ea5c771c791e64c575da4b01701 (patch) | |
tree | fcd6e593a3ab8e562ef4f08140b5145ac7e6bf27 /gltrace.py | |
parent | fcfbf176900a32e0926450a2f1e5faa7f272823b (diff) |
Make Trace::Writer methods a bit more consistent.
Diffstat (limited to 'gltrace.py')
-rw-r--r-- | gltrace.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -334,7 +334,7 @@ class GlTracer(Tracer): # Emit a fake function print ' {' print ' static const Trace::FunctionSig &__sig = %s ? __glEnableClientState_sig : __glDisableClientState_sig;' % flag_name - print ' unsigned __call = __writer.beginEnter(__sig);' + print ' unsigned __call = __writer.beginEnter(&__sig);' print ' __writer.beginArg(0);' dump_instance(glapi.GLenum, enable_name) print ' __writer.endArg();' @@ -424,7 +424,7 @@ class GlTracer(Tracer): Tracer.dispatch_function(self, function) def emit_memcpy(self, dest, src, length): - print ' unsigned __call = __writer.beginEnter(__memcpy_sig);' + print ' unsigned __call = __writer.beginEnter(&__memcpy_sig);' print ' __writer.beginArg(0);' print ' __writer.writeOpaque(%s);' % dest print ' __writer.endArg();' @@ -547,7 +547,7 @@ class GlTracer(Tracer): # Emit a fake function self.array_trace_intermezzo(api, uppercase_name) - print ' unsigned __call = __writer.beginEnter(__%s_sig);' % (function.name,) + print ' unsigned __call = __writer.beginEnter(&__%s_sig);' % (function.name,) for arg in function.args: assert not arg.output print ' __writer.beginArg(%u);' % (arg.index,) @@ -591,7 +591,7 @@ class GlTracer(Tracer): print ' size_t __size = __%s_size(%s, maxindex);' % (function.name, arg_names) # Emit a fake function - print ' unsigned __call = __writer.beginEnter(__%s_sig);' % (function.name,) + print ' unsigned __call = __writer.beginEnter(&__%s_sig);' % (function.name,) for arg in function.args: assert not arg.output print ' __writer.beginArg(%u);' % (arg.index,) @@ -658,7 +658,7 @@ class GlTracer(Tracer): self.fake_call(function, [texture]) def fake_call(self, function, args): - print ' unsigned __fake_call = __writer.beginEnter(__%s_sig);' % (function.name,) + print ' unsigned __fake_call = __writer.beginEnter(&__%s_sig);' % (function.name,) for arg, instance in zip(function.args, args): assert not arg.output print ' __writer.beginArg(%u);' % (arg.index,) |