e8275538e5
The internal CoglMaterialLayer pointers associated with a material may change whenever layer properties are modified so it's no longer ok to assume that a list of layers returned by cogl_material_get_layers remains valid if the layers have been changed.