diff --git a/cogl/cogl-material.c b/cogl/cogl-material.c index 985ebe2db..034e973dc 100644 --- a/cogl/cogl-material.c +++ b/cogl/cogl-material.c @@ -5615,7 +5615,11 @@ dump_material_cb (CoglMaterialNode *node, void *user_data) } if (layers) - _cogl_material_foreach_layer_internal (material, dump_layer_ref_cb, state); + { + g_list_foreach (material->layer_differences, + (GFunc)dump_layer_ref_cb, + state); + } state_out.parent_id = material_id;