mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
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:
parent
9becd34a37
commit
2db2de021f
@ -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>
|
2007-12-28 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-model.c:
|
* clutter/clutter-model.c:
|
||||||
|
@ -629,6 +629,13 @@ clutter_texture_unrealize (ClutterActor *actor)
|
|||||||
if (priv->tiles == NULL)
|
if (priv->tiles == NULL)
|
||||||
return;
|
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();
|
CLUTTER_MARK();
|
||||||
|
|
||||||
if (clutter_feature_available (CLUTTER_FEATURE_TEXTURE_READ_PIXELS))
|
if (clutter_feature_available (CLUTTER_FEATURE_TEXTURE_READ_PIXELS))
|
||||||
|
Loading…
Reference in New Issue
Block a user