diff options
author | Robert Bragg <robert@linux.intel.com> | 2010-02-17 18:45:08 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2010-02-23 22:09:07 +0000 |
commit | f9fe4526ebb79de87c4bf456efbf6f544525f1a6 (patch) | |
tree | bf25d5b1e7c48dff65dc687e72ba127cba8fe122 /cogl/cogl-framebuffer.c | |
parent | 5751e4875624d6a68e635f1e20486e54bb17f47e (diff) | |
download | cogl-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.c | 6 |
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, |