X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=source%2Fglprint.funcs.t;h=111748e91e3f546c9e189bd70f74971d5f5134a6;hp=047c9fae0ac380fc8796bd59e04d54901f24bc8e;hb=3fce21d3193c09840cfbaa96fe05b00b7444fd66;hpb=7cc7ebcdb800bd4d88e4fccff8459003599e71d7 diff --git a/source/glprint.funcs.t b/source/glprint.funcs.t index 047c9fa..111748e 100644 --- a/source/glprint.funcs.t +++ b/source/glprint.funcs.t @@ -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: