]> git.cworth.org Git - apitrace/blobdiff - wrappers/gltrace.py
Cleanup how pointers are handled.
[apitrace] / wrappers / gltrace.py
index 9f60acb9b1a21ebea851c2047f230e9e3badd134..cdf8e55098b2f2c108d29c452a6651984cb8aa5d 100644 (file)
@@ -811,7 +811,7 @@ class GlTracer(Tracer):
             print '        if (ctx->profile == gltrace::PROFILE_COMPAT)'
             print '            __glGetIntegerv(GL_PIXEL_UNPACK_BUFFER_BINDING, &__unpack_buffer);'
             print '        if (__unpack_buffer) {'
-            print '            trace::localWriter.writeOpaque(%s);' % arg.name
+            print '            trace::localWriter.writePointer((uintptr_t)%s);' % arg.name
             print '        } else {'
             Tracer.serializeArgValue(self, function, arg)
             print '        }'