mirror of
https://github.com/brl/mutter.git
synced 2025-08-05 08:04:50 +00:00
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)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user