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;