diff options
author | Neil Roberts <neil@linux.intel.com> | 2010-11-27 16:27:59 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-11-29 10:55:52 +0000 |
commit | 2dc9e0dc2941a1f805e71a656585037ced0ed721 (patch) | |
tree | 6d17c78f5128b1d0949165c5c4c87193d7ce32f5 /clutter/clutter-offscreen-effect.c | |
parent | b63e9ee8f8717dbf73e15df1e9a9d115dcb45504 (diff) | |
download | clutter-2dc9e0dc2941a1f805e71a656585037ced0ed721.tar.gz |
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
Diffstat (limited to 'clutter/clutter-offscreen-effect.c')
-rw-r--r-- | clutter/clutter-offscreen-effect.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clutter/clutter-offscreen-effect.c b/clutter/clutter-offscreen-effect.c index ebfc45d02..b6e690097 100644 --- a/clutter/clutter-offscreen-effect.c +++ b/clutter/clutter-offscreen-effect.c @@ -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); } |