material: Check before unreferencing a texture
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 6 Sep 2010 17:07:07 +0000 (18:07 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 6 Sep 2010 17:09:19 +0000 (18:09 +0100)
commit283dce8e21b58bd769e923e9239d5607b820ddd9
tree479a9ebc73ee9511573ee62769c020afb4fcd127
parentb4120b81e4a472fff5f7388b4cfc8f717ecc23f0
material: Check before unreferencing a texture

When disposing a material layer of type 'texture' we should check that
the texture handle is still valid before calling cogl_handle_unref().
This avoids an assertion failure when disposing a ClutterTexture.
clutter/cogl/cogl/cogl-material.c