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:
parent
c1733e8d7c
commit
c23bc80ba4
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue