From: José Fonseca Date: Wed, 23 Mar 2011 23:22:50 +0000 (+0000) Subject: Dump SwapBuffers calls with -v X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=eb39ca967e62924537d80f7c27f8999c7a7c6aa1;p=apitrace Dump SwapBuffers calls with -v --- diff --git a/glretrace.py b/glretrace.py index 761be80..070fd37 100644 --- a/glretrace.py +++ b/glretrace.py @@ -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();