mirror of
https://github.com/brl/mutter.git
synced 2025-01-03 16:22:15 +00:00
2007-05-28 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-texture.c: (clutter_texture_unrealize): Dont even try to move texture pixels from video -> system ram on unrealisation for GL/ES
This commit is contained in:
parent
71c2f16bef
commit
d704e2e331
@ -1,3 +1,9 @@
|
|||||||
|
2007-05-28 Matthew Allum <mallum@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/clutter-texture.c: (clutter_texture_unrealize):
|
||||||
|
Dont even try to move texture pixels from video -> system
|
||||||
|
ram on unrealisation for GL/ES
|
||||||
|
|
||||||
2007-05-28 Matthew Allum <mallum@openedhand.com>
|
2007-05-28 Matthew Allum <mallum@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-stage.c: (clutter_stage_get_actor_at_pos):
|
* clutter/clutter-stage.c: (clutter_stage_get_actor_at_pos):
|
||||||
|
@ -561,12 +561,18 @@ clutter_texture_unrealize (ClutterActor *actor)
|
|||||||
|
|
||||||
CLUTTER_MARK();
|
CLUTTER_MARK();
|
||||||
|
|
||||||
/* Move image data from video to main memory
|
if (clutter_feature_available (CLUTTER_FEATURE_TEXTURE_READ_PIXELS))
|
||||||
*/
|
{
|
||||||
if (priv->local_pixbuf == NULL)
|
/* Move image data from video to main memory.
|
||||||
priv->local_pixbuf = clutter_texture_get_pixbuf (texture);
|
* GL/ES cant do this - it probably makes sense
|
||||||
|
* to move this kind of thing into a ClutterProxyTexture
|
||||||
|
* where this behaviour can be better controlled.
|
||||||
|
*/
|
||||||
|
if (priv->local_pixbuf == NULL)
|
||||||
|
priv->local_pixbuf = clutter_texture_get_pixbuf (texture);
|
||||||
|
|
||||||
texture_free_gl_resources (texture);
|
texture_free_gl_resources (texture);
|
||||||
|
}
|
||||||
|
|
||||||
CLUTTER_NOTE (TEXTURE, "Texture unrealized");
|
CLUTTER_NOTE (TEXTURE, "Texture unrealized");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user