Robert Bragg eeac7c5f43 material: fix initialization of sparse properties
In _cogl_material_pre_change_notify we need to identify if it's a sparse
property being changed and if so initialize the state group if the given
material isn't currently the authority for it.

Previously we were unconditionally calling
_cogl_material_initialize_state which would e.g. NULL the layer
differences list of a material each time a layer change was notified.

It would also call _cogl_material_initialize_state for non-sparse
properties which should always be valid at this point so the function
has been renamed to _cogl_material_initialize_sparse_state to make this
clearer with a corresponding g_return_if_fail check.
2010-08-09 17:12:26 +01:00
..
2010-03-01 12:56:10 +00:00
2010-08-09 11:29:03 +01:00
2010-08-04 15:13:12 +01:00
2010-08-03 16:48:53 +01:00
2010-06-30 11:32:15 +01:00
2009-01-20 18:47:50 +00:00
2010-06-30 11:32:15 +01:00
2010-06-03 14:10:55 +01:00
2010-03-02 11:12:32 +00:00
2010-05-25 11:13:03 +01:00
2010-06-11 16:09:36 +01:00
2010-03-02 11:12:32 +00:00
2009-07-10 11:38:42 +01:00
2010-06-11 16:09:36 +01:00
2010-06-11 16:09:36 +01:00
2010-03-02 11:12:32 +00:00
2010-06-30 11:32:15 +01:00
2010-06-11 16:09:36 +01:00
2010-02-03 14:38:13 +00:00
2010-06-11 16:09:36 +01:00
2010-02-01 10:40:34 +00:00
2010-03-02 11:12:32 +00:00