From: José Fonseca Date: Tue, 23 Nov 2010 21:35:30 +0000 (+0000) Subject: Keep gl function pointers. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=f8f6e4544976184b6c24f08c6129655904e7a274;p=apitrace Keep gl function pointers. --- diff --git a/glxtrace.py b/glxtrace.py index 0e7dc57..1874f94 100644 --- a/glxtrace.py +++ b/glxtrace.py @@ -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 ' }' diff --git a/opengl32.py b/opengl32.py index ca7942f..e9c5c56 100644 --- a/opengl32.py +++ b/opengl32.py @@ -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 ' }'