]> git.cworth.org Git - apitrace/blobdiff - glretrace.py
Merge branch 'd3dretrace'
[apitrace] / glretrace.py
index 56741467075171bd33618491b6cfed385c1f74a5..d91c8a25fe2ec2e68d39c89c15a2ada41e1b5f90 100644 (file)
@@ -415,6 +415,12 @@ class GlRetracer(Retracer):
             print '        samples = max_samples;'
             print '    }'
 
+        # These parameters are referred beyond the call life-time
+        # TODO: Replace ad-hoc solution for bindable parameters with general one
+        if function.name in ('glFeedbackBuffer', 'glSelectBuffer') and arg.output:
+            print '    _allocator.bind(%s);' % arg.name
+
+
 
 if __name__ == '__main__':
     print r'''