Dump SwapBuffers calls with -v
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 23 Mar 2011 23:22:50 +0000 (23:22 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 23 Mar 2011 23:22:50 +0000 (23:22 +0000)
glretrace.py

index 761be80..070fd37 100644 (file)
@@ -282,6 +282,10 @@ static void display(void) {
             // XXX: We ignore the majority of the OS-specific calls for now
             if (name == "glXSwapBuffers" ||
                 name == "wglSwapBuffers") {
+                if (verbosity >= 1) {
+                    std::cout << *call;
+                    std::cout.flush();
+                };
                 frame_complete();
                 if (double_buffer)
                     glutSwapBuffers();