]> git.cworth.org Git - apitrace/blobdiff - glretrace.py
Parse doubles to a new Double class rather than to the Float class.
[apitrace] / glretrace.py
index e80fedbaf852565e2c7c820c92744f054b47094c..6de28828a7f9312b13b4b11c26d90953ceffb0bb 100644 (file)
@@ -29,6 +29,7 @@
 
 import specs.stdapi as stdapi
 import specs.glapi as glapi
+import specs.glesapi as glesapi
 from retrace import Retracer
 
 
@@ -209,7 +210,7 @@ class GlRetracer(Retracer):
             print '        glretrace::snapshot(call.no - 1);'
             print '    }'
         if function.name == 'glFrameTerminatorGREMEDY':
-            print '    glretrace::frame_complete(call.no);'
+            print '    glretrace::frame_complete(call);'
             return
 
         Retracer.retrace_function_body(self, function)
@@ -217,7 +218,7 @@ class GlRetracer(Retracer):
         # Post-snapshots
         if function.name in ('glFlush', 'glFinish'):
             print '    if (!glretrace::double_buffer) {'
-            print '        glretrace::frame_complete(call.no);'
+            print '        glretrace::frame_complete(call);'
             print '    }'
         if is_draw_array or is_draw_elements or is_misc_draw:
             print '    if (glretrace::snapshot_frequency == glretrace::FREQUENCY_DRAW) {'
@@ -395,5 +396,6 @@ if __name__ == '__main__':
 
 '''
     api = glapi.glapi
+    api.add_api(glesapi.glesapi)
     retracer = GlRetracer()
     retracer.retrace_api(api)