]> git.cworth.org Git - apitrace/blobdiff - wrappers/gltrace.py
specs: Allow an API to spread across multiple modules.
[apitrace] / wrappers / gltrace.py
index 96da4e85c576e25af119696f9c849ae2ecbb3724..3e01e40eb72010e9fae5887509514d3762e0a91e 100644 (file)
@@ -337,7 +337,7 @@ class GlTracer(Tracer):
             print '    if (!procPtr) {'
             print '        return procPtr;'
             print '    }'
-            for function in api.functions:
+            for function in api.getAllFunctions():
                 ptype = function_pointer_type(function)
                 pvalue = function_pointer_value(function)
                 print '    if (strcmp("%s", (const char *)procName) == 0) {' % function.name
@@ -355,7 +355,7 @@ class GlTracer(Tracer):
         print 'void _shadow_glGetBufferSubData(GLenum target, GLintptr offset,'
         print '                                GLsizeiptr size, GLvoid *data)'
         print '{'
-        print '    struct gltrace::Context *ctx = gltrace::getContext();'
+        print '    gltrace::Context *ctx = gltrace::getContext();'
         print '    if (!ctx->needsShadowBuffers() || target != GL_ELEMENT_ARRAY_BUFFER) {'
         print '        _glGetBufferSubData(target, offset, size, data);'
         print '        return;'