From 3726213291ad513e09ec7e8b3776cc2d2b9d9cb9 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 25 Jun 2009 14:39:57 +0100 Subject: [PATCH] Add debug notes for calls to glViewport() 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/cogl/common/cogl.c b/clutter/cogl/common/cogl.c index 9b1cbf7f0..a4d8feaec 100644 --- a/clutter/cogl/common/cogl.c +++ b/clutter/cogl/common/cogl.c @@ -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;