X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=wrappers%2Fcgltrace.py;h=c56edf24443911611050747fa9cc0a7fbec2688b;hb=7a9fb5103e052150232b64cb5d99374cda3f1234;hp=4bb0c4c304a9ed3cead8f697480f6267d34b0bd9;hpb=53eb3180a583cd755604f9b41e5ab0d285c2269a;p=apitrace diff --git a/wrappers/cgltrace.py b/wrappers/cgltrace.py index 4bb0c4c..c56edf2 100644 --- a/wrappers/cgltrace.py +++ b/wrappers/cgltrace.py @@ -28,7 +28,7 @@ from gltrace import GlTracer -from specs.stdapi import API +from specs.stdapi import Module, API from specs.glapi import glapi from specs.cglapi import cglapi @@ -53,7 +53,7 @@ class CglTracer(GlTracer): if function.name == 'CGLDestroyContext': # The same rule applies here about the as for CGLReleaseContext. - print ' if (gltrace::destroyContext((uintptr_t)ctx)) {' + print ' if (gltrace::releaseContext((uintptr_t)ctx)) {' print ' if (_CGLGetCurrentContext() == ctx) {' print ' gltrace::clearContext();' print ' }' @@ -93,9 +93,11 @@ if __name__ == '__main__': print '#include "glsize.hpp"' print + module = Module() + module.mergeModule(cglapi) + module.mergeModule(glapi) api = API() - api.addApi(cglapi) - api.addApi(glapi) + api.addModule(module) tracer = CglTracer() tracer.traceApi(api)