From c23bc80ba4e2a06fe71b9e2ca4c0a009684330bf Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Wed, 3 Jul 2024 09:27:39 +0200 Subject: [PATCH] cogl/debug: Take a context param This will make the usage through gdb not as useful as it was but it is the last remaining usage of a gross hack, so let us get rid of it Part-of: --- cogl/cogl/cogl-pipeline-debug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cogl/cogl/cogl-pipeline-debug.c b/cogl/cogl/cogl-pipeline-debug.c index 455ffaec8..2e4ff7074 100644 --- a/cogl/cogl/cogl-pipeline-debug.c +++ b/cogl/cogl/cogl-pipeline-debug.c @@ -241,10 +241,12 @@ dump_pipeline_cb (CoglNode *node, void *user_data) want to put a declaration in a header and we just add it here to avoid a warning */ void -_cogl_debug_dump_pipelines_dot_file (const char *filename); +_cogl_debug_dump_pipelines_dot_file (const char *filename, + CoglContext *ctx); void -_cogl_debug_dump_pipelines_dot_file (const char *filename) +_cogl_debug_dump_pipelines_dot_file (const char *filename, + CoglContext *ctx) { GString *graph; PrintDebugState layer_state; @@ -252,8 +254,6 @@ _cogl_debug_dump_pipelines_dot_file (const char *filename) int layer_id = 0; int pipeline_id = 0; - _COGL_GET_CONTEXT (ctx, NO_RETVAL); - if (!ctx->default_pipeline) return;