[texture] remove redundant if (paint_opacity == 0) bailout

clutter_texture_paint shouldn't need to optimize the case where
paint_opacity == 0 and bailout, since we've been doing this optimization for
all actors in clutter_actor_paint for a while now.
This commit is contained in:
Robert Bragg 2009-09-23 19:04:03 +01:00
parent dfe6eb1e51
commit 3f64f57830

View File

@ -525,14 +525,6 @@ clutter_texture_paint (ClutterActor *self)
gfloat t_w, t_h;
guint8 paint_opacity = clutter_actor_get_paint_opacity (self);
if (paint_opacity == 0)
{
/* Bail early if painting the actor would be a no-op, custom actors that
* might cause a lot of work/state changes should all do this.
*/
return;
}
if (priv->fbo_handle != COGL_INVALID_HANDLE)
update_fbo (self);