mirror of
https://github.com/brl/mutter.git
synced 2025-08-01 14:15:30 +00:00
2008-11-07 Matthew Allum <mallum@linux.intel.com>
* clutter/clutter-actor.c: * clutter/clutter-actor.h: * clutter/clutter-clone-texture.c: * clutter/clutter-private.h: * clutter/clutter-texture.c: * clutter/x11/clutter-x11-texture-pixmap.c: Attempt to lower overhead of updating TFP's (particularly mipmaped). Compresses mipmap updates only for visible TFPs. Avoiding updates for non visible TFP's whilst keeping visible clones working ok.
This commit is contained in:
@@ -572,6 +572,13 @@ clutter_texture_paint (ClutterActor *self)
|
||||
clutter_shader_set_is_enabled (shader, TRUE);
|
||||
}
|
||||
|
||||
/* A clone may need to fire above if were a TFP/FBO but not visible.
|
||||
* Ultimatly needs some reworking with maybe an extra prepare_paint
|
||||
* method or some such.
|
||||
*/
|
||||
if (CLUTTER_PRIVATE_FLAGS(self) & CLUTTER_TEXTURE_IN_CLONE_PAINT)
|
||||
return;
|
||||
|
||||
CLUTTER_NOTE (PAINT,
|
||||
"painting texture '%s'",
|
||||
clutter_actor_get_name (self) ? clutter_actor_get_name (self)
|
||||
|
Reference in New Issue
Block a user