]> git.cworth.org Git - apitrace/commitdiff
Keep gl function pointers.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 23 Nov 2010 21:35:30 +0000 (21:35 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 23 Nov 2010 21:35:30 +0000 (21:35 +0000)
glxtrace.py
opengl32.py

index 0e7dc57eec74ba68547e35f99489ea6857aa1bec..1874f9415dd6942c82382e95763fe440745a59a2 100644 (file)
@@ -59,6 +59,7 @@ class GlxTracer(trace.Tracer):
                 ptype = self.function_pointer_type(f)
                 pvalue = self.function_pointer_value(f)
                 print '        if(!strcmp("%s", (const char *)procName)) {' % f.name
+                print '            %s = (%s)%s;' % (pvalue, ptype, instance)
                 print '            %s = (%s)&%s;' % (instance, function.type, f.name);
                 print '        }'
             print '    }'
index ca7942f4fff82ae7ff48ccbc6ed4b02fbeedb9d2..e9c5c567d5a7efdfdb7dbef29b074b4859707373 100644 (file)
@@ -414,6 +414,7 @@ class WglTracer(Tracer):
                 ptype = self.function_pointer_type(f)
                 pvalue = self.function_pointer_value(f)
                 print '        if (!strcmp("%s", lpszProc)) {' % f.name
+                print '            %s = (%s)%s;' % (pvalue, ptype, instance)
                 print '            %s = (%s)&%s;' % (instance, function.type, f.name);
                 print '        }'
             print '    }'