material: free any layer cache in material_set_parent
authorRobert Bragg <robert@linux.intel.com>
Mon, 14 Jun 2010 21:20:27 +0000 (22:20 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 15 Jun 2010 14:26:28 +0000 (15:26 +0100)
commit2fe58f5000fc36ed8c37481f85ab1ec975ed0a9a
tree2949dad06910f0295e16d2eb48929710ba2f0992
parentdc0cb7959885c0eaf43008c0065ed99bf10d5df2
material: free any layer cache in material_set_parent

Previously in _cogl_material_pre_change_notify we manually freed the
layer caches of a material if we caused a reparent, but it makes more
sense to have _cogl_material_set_parent do this directly instead.
clutter/cogl/cogl/cogl-material.c