]> git.cworth.org Git - apitrace/blobdiff - wrappers/gltrace.py
mt trace: create gltrace_state.cpp, move getContext into it
[apitrace] / wrappers / gltrace.py
index 8588d1f826473f5f6cad77024b6964a8d8627d96..901e9d749c1d096ca749526b467b6afae17bd6f8 100644 (file)
@@ -121,14 +121,6 @@ class GlTracer(Tracer):
         print '    VERTEX_ATTRIB_NV,'
         print '};'
         print
-        print 'gltrace::Context *'
-        print 'gltrace::getContext(void)'
-        print '{'
-        print '    // TODO return the context set by other APIs (GLX, EGL, and etc.)'
-        print '    static gltrace::Context _ctx = { gltrace::PROFILE_COMPAT, false, false, false };'
-        print '    return &_ctx;'
-        print '}'
-        print
         print 'static vertex_attrib _get_vertex_attrib(void) {'
         print '    gltrace::Context *ctx = gltrace::getContext();'
         print '    if (ctx->user_arrays_arb || ctx->user_arrays_nv) {'