X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglwrap.funcs.t;h=eb77b0a7a3e0e5ce15e19101bffcb18ad73e8928;hb=27a82684df128955f6c4e1467935be14ff9bb816;hp=fbba906909d5e803a3037a43a8d1c85c953d232e;hpb=3c32a221de1435ae7af8d96182560e8b28f1a4c0;p=gldbg.git diff --git a/source/glwrap.funcs.t b/source/glwrap.funcs.t index fbba906..eb77b0a 100644 --- a/source/glwrap.funcs.t +++ b/source/glwrap.funcs.t @@ -1,4 +1,6 @@ # $Id$ +!handcode glBegin +!handcode glEnd !handcode glGetError !handcode glXGetProcAddress !handcode glXGetProcAddressARB @@ -15,10 +17,10 @@ if ret.ctype!='void': wl('orig(%s);', ", ".join([p.name for p in params])) wl(' begin_packet(FUNC_%s);', func.name.upper()) if ret.ctype!='void': - wl(' write_%s(ret);', ret.io[0]) + wl(' write_%s(ret);', ret.io[0].replace(' ', '_')) for p in params: if p.kind=="value": - wl(' write_%s(%s);', p.io[0], p.name) + wl(' write_%s(%s);', p.io[0].replace(' ', '_'), p.name) elif p.kind=="array" and p.io and p.io[0]=="string": wl(' write_string_array(%s, %s);', p.name, p.csize) elif p.csize: