X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglwrap.funcs.t;h=59bdb47b216e5e71506731bb4c0d2c0b63b2c8ae;hb=7c57338619688bc07f394ad82f75471aefbecc59;hp=decf22e9bb320196fbcc1ee9bce31dc431137b2d;hpb=49f8063ce156a50d4b3b8c77a1508a21ea2bfe90;p=gldbg.git diff --git a/source/glwrap.funcs.t b/source/glwrap.funcs.t index decf22e..59bdb47 100644 --- a/source/glwrap.funcs.t +++ b/source/glwrap.funcs.t @@ -1,4 +1,7 @@ # $Id$ +!handcode glGetError +!handcode glXGetProcAddress +!handcode glXGetProcAddressARB wl('%s APIENTRY %s(%s)', ret.ctype, func.name, ", ".join([p.ctype+" "+p.name for p in params])) wl('{') wl(' static %s (*orig)(%s);', ret.ctype, ", ".join([p.ctype for p in params])) @@ -21,6 +24,8 @@ for p in params: else: wl(' write_pointer(%s);', p.name) wl(' send_packet();') +if not func.name.startswith("glX"): + wl(' check_error();') if ret.ctype!='void': wl(' return ret;') wl('}')