[cogl-texture] Move the destruction of the material to _finalize
authorNeil Roberts <neil@linux.intel.com>
Thu, 5 Feb 2009 20:24:18 +0000 (20:24 +0000)
committerNeil Roberts <neil@linux.intel.com>
Thu, 5 Feb 2009 20:29:25 +0000 (20:29 +0000)
commita2168686b918b8f66210650296d299603db3eab8
tree92aa8679b06fbed96ea500ac9c751b54624f68a9
parent05c7e5a97c0c059ed2f1fd20f55beae22eaf83c1
[cogl-texture] Move the destruction of the material to _finalize

Otherwise if the dipose method is called twice the material will
already be destroyed when texture_free_gl_resources is called so it
will issue a warning about an invalid handle.
clutter/clutter-texture.c