2007-12-28 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-texture.c:
	(clutter_texture_unrealize): Do not read the pixels back if the
	texture is being destroyed
This commit is contained in:
Emmanuele Bassi 2007-12-28 15:34:24 +00:00
parent 9becd34a37
commit 2db2de021f
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-12-28 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-texture.c:
(clutter_texture_unrealize): Do not read the pixels back if the
texture is being destroyed
2007-12-28 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.c:

View File

@ -629,6 +629,13 @@ clutter_texture_unrealize (ClutterActor *actor)
if (priv->tiles == NULL)
return;
/* there's no need to read the pixels back when unrealizing inside
* a dispose run, and the dispose() call will release the GL
* texture data as well, so we can safely bail out now
*/
if (CLUTTER_PRIVATE_FLAGS (actor) & CLUTTER_ACTOR_IN_DESTRUCTION)
return;
CLUTTER_MARK();
if (clutter_feature_available (CLUTTER_FEATURE_TEXTURE_READ_PIXELS))