diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2012-07-11 12:14:31 +0100 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2012-07-11 12:14:31 +0100 |
commit | 5c298db8fe117e0a445af051335aa0da91c3a31b (patch) | |
tree | 46fe3c4e23525b3e7b2d35b3ef3bc459c847dcef /wrappers/glxtrace.py | |
parent | 2f7a65c47d78dd4635278d9952f30d2891e2371b (diff) |
Eliminate destroyContext.
Same as releaseContext.
Diffstat (limited to 'wrappers/glxtrace.py')
-rw-r--r-- | wrappers/glxtrace.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wrappers/glxtrace.py b/wrappers/glxtrace.py index 73e41b36..ff3eb4cd 100644 --- a/wrappers/glxtrace.py +++ b/wrappers/glxtrace.py @@ -46,6 +46,9 @@ class GlxTracer(GlTracer): ] def traceFunctionImplBody(self, function): + if function.name == 'glXDestroyContext': + print ' gltrace::releaseContext((uintptr_t)ctx);' + GlTracer.traceFunctionImplBody(self, function) if function.name == 'glXCreateContext': @@ -60,9 +63,6 @@ class GlxTracer(GlTracer): print ' gltrace::clearContext();' print ' }' - if function.name == 'glXDestroyContext': - print ' gltrace::destroyContext((uintptr_t)ctx);' - if __name__ == '__main__': print |