1
0
Fork 0

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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3857>
This commit is contained in:
Bilal Elmoussaoui 2024-07-03 09:27:39 +02:00 committed by Marge Bot
parent c1733e8d7c
commit c23bc80ba4

View file

@ -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;