summaryrefslogtreecommitdiff
path: root/cogl/cogl-framebuffer.c
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2010-02-17 18:45:08 +0000
committerRobert Bragg <robert@linux.intel.com>2010-02-23 22:09:07 +0000
commitf9fe4526ebb79de87c4bf456efbf6f544525f1a6 (patch)
treebf25d5b1e7c48dff65dc687e72ba127cba8fe122 /cogl/cogl-framebuffer.c
parent5751e4875624d6a68e635f1e20486e54bb17f47e (diff)
downloadcogl-f9fe4526ebb79de87c4bf456efbf6f544525f1a6.tar.gz
cogl debug: Adds glViewport call tracing
To aid in the debugging of Clutter stage resize issues this adds a COGL_DEBUG=opengl option that will trace "some select OpenGL calls" (currently just glViewport calls)
Diffstat (limited to 'cogl/cogl-framebuffer.c')
-rw-r--r--cogl/cogl-framebuffer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index 2b35e111..6bf6c531 100644
--- a/cogl/cogl-framebuffer.c
+++ b/cogl/cogl-framebuffer.c
@@ -681,6 +681,12 @@ _cogl_framebuffer_flush_state (CoglHandle handle,
gl_viewport_y = framebuffer->height -
(framebuffer->viewport_y + framebuffer->viewport_height);
+ COGL_NOTE (OPENGL, "Calling glViewport(%d, %d, %d, %d)",
+ framebuffer->viewport_x,
+ gl_viewport_y,
+ framebuffer->viewport_width,
+ framebuffer->viewport_height);
+
GE (glViewport (framebuffer->viewport_x,
gl_viewport_y,
framebuffer->viewport_width,