[gtk/wip/chergert/glproto: 830/920] more details in file name




commit c35228d228db9721831bcb6756ccc8f653573ea8
Author: Christian Hergert <chergert redhat com>
Date:   Sat Jan 30 12:00:36 2021 -0800

    more details in file name

 gsk/next/gskglcommandqueue.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 2b373cb34c..1fe456b4eb 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -880,13 +880,15 @@ gsk_gl_command_queue_execute (GskGLCommandQueue    *self,
       if (batch->any.kind == GSK_GL_COMMAND_KIND_DRAW ||
           batch->any.kind == GSK_GL_COMMAND_KIND_CLEAR)
         {
-          char filename[64];
+          char filename[128];
           g_snprintf (filename, sizeof filename,
-                      "capture%03u_batch%03d_kind%u_program%u_u%u_b%u.png",
+                      "capture%03u_batch%03d_kind%u_program%u_u%u_b%u_fb%u_ctx%p.png",
                       count, next_batch_index,
                       batch->any.kind, batch->any.program,
                       batch->any.kind == GSK_GL_COMMAND_KIND_DRAW ? batch->draw.uniform_count : 0,
-                      batch->any.kind == GSK_GL_COMMAND_KIND_DRAW ? batch->draw.bind_count : 0);
+                      batch->any.kind == GSK_GL_COMMAND_KIND_DRAW ? batch->draw.bind_count : 0,
+                      framebuffer,
+                      gdk_gl_context_get_current ());
           gsk_gl_command_queue_capture_png (self, filename, width, height, TRUE);
         }
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]