]> git.tdb.fi Git - gldbg.git/blobdiff - source/glprint.funcs.t
Fix things for 64-bit systems
[gldbg.git] / source / glprint.funcs.t
index 047c9fae0ac380fc8796bd59e04d54901f24bc8e..111748e91e3f546c9e189bd70f74971d5f5134a6 100644 (file)
@@ -38,7 +38,10 @@ for p in params+[ret]:
                        elif p.type=="TextureComponentCount":
                                w(', print_internal_format(%s)', p.name)
                        elif len(p.io)>=3 and p.io[2]:
-                               w(', %s(%s, "%s")', p.io[2], p.name, p.type)
+                               if p.io[2][0]=='(':
+                                       w(', %s%s', p.io[2], p.name)
+                               else:
+                                       w(', %s(%s, "%s")', p.io[2], p.name, p.type)
                        else:
                                w(', %s', p.name)
                elif p.kind=="reference" and not p.io: