summaryrefslogtreecommitdiff
path: root/glxtrace.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-07-15 20:16:40 +0100
committerJosé Fonseca <jfonseca@vmware.com>2011-07-15 20:16:40 +0100
commit8f34d34693077e6377a8e75ba537069ac368f35b (patch)
tree3b5a3f46991b932764d89bfc3d25333476102622 /glxtrace.py
parent1b3d3752685cd15531c45e190c8ed55d31271127 (diff)
Fix the *GREMEDY proc address return.
Diffstat (limited to 'glxtrace.py')
-rw-r--r--glxtrace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glxtrace.py b/glxtrace.py
index 7511f0a..6b5d786 100644
--- a/glxtrace.py
+++ b/glxtrace.py
@@ -101,7 +101,7 @@ if __name__ == '__main__':
for f in api.functions:
ptype = function_pointer_type(f)
pvalue = function_pointer_value(f)
- print ' if (!strcmp("%s", (const char *)procName)) {' % f.name
+ print ' if (strcmp("%s", (const char *)procName) == 0) {' % f.name
print ' %s = (%s)procPtr;' % (pvalue, ptype)
print ' return (__GLXextFuncPtr)&%s;' % (f.name,)
print ' }'