[cogl-material] make _cogl_material_layer_free check for an invalid texture handle
authorRobert Bragg <robert@linux.intel.com>
Wed, 29 Apr 2009 18:49:09 +0000 (19:49 +0100)
committerRobert Bragg <robert@linux.intel.com>
Sat, 2 May 2009 03:12:25 +0000 (04:12 +0100)
commitee57192f47e38a62828e0f2c1a1f966b7aa4fba3
tree8df402c59492a65c72aef22ed5191a65d8ffd710
parentf85377372cc1317f8301a78423e76c668e281f3b
[cogl-material] make _cogl_material_layer_free check for an invalid texture handle

It is valid in some situations to have a material layer with an invalid texture
handle (e.g. if you setup a texture combine mode before setting the texture)
and so _cogl_material_layer_free needs to check for a valid handle before
attempting to unref it.
clutter/cogl/common/cogl-material.c