Neil Roberts
52cbc93b18
cogl-material: Fix the count of the number of layers
...
Previously the counter for the number of layers was only updated
whenever the texture handle for a layer changes. However there are
many other ways for a new layer to be created for example by setting a
layer combine constant. Also by default the texture on a layer is
COGL_INVALID_HANDLE so if the application tries to create an explicit
layer with no texture by calling cogl_material_set_layer with
COGL_INVALID_HANDLE then it also wouldn't update the count.
This patch fixes that by incrementing the count in
cogl_material_get_layer instead. This function is called by all
functions that may end up creating a layer so it seems like the most
appropriate place.
http://bugzilla.openedhand.com/show_bug.cgi?id=2132
2010-05-24 16:10:56 +01:00
..
2010-05-05 12:24:11 +01:00
2010-05-19 15:28:04 +01:00
2010-03-01 12:56:10 +00:00
2010-04-13 17:26:03 +01:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-04-21 10:56:21 +01:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-04-21 10:56:21 +01:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-05-06 14:15:04 +01:00
2010-04-15 14:51:01 +01:00
2010-04-15 14:51:01 +01:00
2010-04-15 14:51:01 +01:00
2010-04-06 09:26:05 +01:00
2010-03-01 12:56:10 +00:00
2010-05-24 16:10:56 +01:00
2010-05-24 16:10:56 +01:00
2010-03-02 16:15:39 +00:00
2010-05-04 17:01:14 +01:00
2010-03-01 12:56:10 +00:00
2009-10-16 18:58:50 +01:00
2009-10-16 18:58:50 +01:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-05-05 12:25:16 +01:00
2010-05-21 14:38:37 +01:00
2010-03-01 12:56:10 +00:00
2010-05-24 16:10:56 +01:00
2010-04-12 15:44:23 +01:00
2010-05-24 16:10:56 +01:00
2010-04-12 15:44:23 +01:00
2010-05-24 16:10:56 +01:00
2010-04-12 15:44:23 +01:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-04-12 15:38:58 +01:00
2010-03-01 12:56:10 +00:00
2010-05-11 16:10:39 +01:00
2010-05-24 16:10:56 +01:00
2010-04-22 18:17:59 +01:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-05-24 16:10:56 +01:00
2010-03-25 09:33:26 +00:00
2010-01-08 20:19:50 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-04-12 15:44:23 +01:00
2010-04-12 15:44:23 +01:00
2010-04-12 15:44:23 +01:00
2010-04-29 13:15:36 +01:00
2010-05-20 12:40:59 +01:00
2010-03-01 12:56:10 +00:00
2010-04-12 15:44:23 +01:00
2010-04-29 13:15:35 +01:00
2010-03-01 12:56:10 +00:00
2010-04-12 15:38:58 +01:00
2010-03-15 16:22:20 +00:00
2010-03-01 12:56:10 +00:00
2010-05-20 17:18:24 +01:00
2010-05-20 17:18:24 +01:00
2010-03-01 12:56:10 +00:00
2010-05-24 16:10:56 +01:00
2010-03-01 12:56:10 +00:00
2010-05-24 16:10:56 +01:00
2010-05-21 14:38:37 +01:00
2009-10-16 18:58:50 +01:00
2010-05-20 17:18:24 +01:00
2010-03-03 17:02:51 +00:00