]> git.cworth.org Git - apitrace/blobdiff - egltrace.py
Kill glsnapshot.
[apitrace] / egltrace.py
index 27a7b0f2b0983c8c677e29e2f06cceae965449a3..994c1ee88a0750e5d29fa1d5c823a9f7f462efa6 100644 (file)
@@ -49,20 +49,6 @@ class EglTracer(GlTracer):
     def trace_function_impl_body(self, function):
         GlTracer.trace_function_impl_body(self, function)
 
-        # Take snapshots
-        if function.name == 'eglSwapBuffers':
-            print '    glsnapshot::snapshot(__call);'
-        if function.name in ('glFinish', 'glFlush'):
-            print '    tracer_context *ctx = __get_context();'
-            print '    GLint __draw_framebuffer = 0;'
-            print '    __glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &__draw_framebuffer);'
-            print '    if (__draw_framebuffer == 0 && ctx->profile == PROFILE_COMPAT) {'
-            print '        GLint __draw_buffer = GL_NONE;'
-            print '        __glGetIntegerv(GL_DRAW_BUFFER, &__draw_buffer);'
-            print '        if (__draw_buffer == GL_FRONT) {'
-            print '             glsnapshot::snapshot(__call);'
-            print '        }'
-            print '    }'
         if function.name == 'eglMakeCurrent':
             print '    // update the profile'
             print '    if (ctx != EGL_NO_CONTEXT) {'
@@ -98,7 +84,6 @@ if __name__ == '__main__':
     print
     print '#include "glproc.hpp"'
     print '#include "glsize.hpp"'
-    print '#include "glsnapshot.hpp"'
     print
     print 'static __eglMustCastToProperFunctionPointerType __unwrap_proc_addr(const char * procname, __eglMustCastToProperFunctionPointerType procPtr);'
     print