ClutterOffscreenEffect: Don't throw away the material for a new actor

When a new actor is set for ClutterOffscreenEffect it would throw away
the old material. I don't think there is anything specifically tied to
the actor in the material so throwing away just loses Cogl's cached
state about the material. This ends up relinking the shader every time
a new actor is set in ClutterShaderEffect.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2454
This commit is contained in:
Neil Roberts 2010-11-27 16:27:59 +00:00 committed by Emmanuele Bassi
parent b63e9ee8f8
commit 2dc9e0dc29

View File

@ -111,12 +111,6 @@ clutter_offscreen_effect_set_actor (ClutterActorMeta *meta,
priv->offscreen = COGL_INVALID_HANDLE;
}
if (priv->target != COGL_INVALID_HANDLE)
{
cogl_handle_unref (priv->target);
priv->target = COGL_INVALID_HANDLE;
}
/* we keep a back pointer here, to avoid going through the ActorMeta */
priv->actor = clutter_actor_meta_get_actor (meta);
}