X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=source%2Fglprint.funcs.t;h=d98f6e72102389bd6cac9a78a5fb79af8fdde7da;hp=cc459790308eab864af19aebd93804dd3c181426;hb=0205804a10fe3beb01ed0135fde052d13b045570;hpb=f53057ce9b5eb3c7256a4aca95b4944733e14503 diff --git a/source/glprint.funcs.t b/source/glprint.funcs.t index cc45979..d98f6e7 100644 --- a/source/glprint.funcs.t +++ b/source/glprint.funcs.t @@ -45,7 +45,10 @@ for p in params+[ret]: elif p.base_ctype=="GLvoid" or p.base_ctype=="void": w(', print_data(%s, %s)', p.name, p.csize) else: - w(', print_array("%s", %s, sizeof(%s), %s)', p.io[1], p.name, p.base_ctype, p.csize) + f = p.io[1] + if len(p.io)>=3 and p.io[2]: + f = "%x" + w(', print_array("%s", %s, sizeof(%s), %s)', f, p.name, p.base_ctype, p.csize) wl(');') wl('}') :static void init_print(GlDecoder *dec)