]> git.cworth.org Git - apitrace/blobdiff - wrappers/glxtrace.py
Eliminate destroyContext.
[apitrace] / wrappers / glxtrace.py
index 73e41b3641222e09fdaead8048685431b7062da5..ff3eb4cd62652ec216b0e83e516aefd011c41241 100644 (file)
@@ -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