Add debug notes for calls to glViewport()
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 25 Jun 2009 13:39:57 +0000 (14:39 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 1 Jul 2009 14:30:18 +0000 (15:30 +0100)
In order to validate the sequence of:

        XResizeWindow
        ConfigureNotify
        glViewport

that should happen on X11 we need to add debug annotations to the
calls to glViewport() done through COGL.

clutter/cogl/common/cogl.c

index 9b1cbf7..a4d8fea 100644 (file)
@@ -500,6 +500,7 @@ cogl_viewport (guint width,
 {
   _COGL_GET_CONTEXT (ctx, NO_RETVAL);
 
+  COGL_NOTE (MISC, "glViewport(0, 0, %u, %u)", width, height);
   GE( glViewport (0, 0, width, height) );
 
   ctx->viewport_width = width;