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.
This commit is contained in:
Emmanuele Bassi 2009-06-25 14:39:57 +01:00
parent 3bab787103
commit 3726213291

View File

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