mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
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:
parent
b63e9ee8f8
commit
2dc9e0dc29
@ -111,12 +111,6 @@ clutter_offscreen_effect_set_actor (ClutterActorMeta *meta,
|
|||||||
priv->offscreen = COGL_INVALID_HANDLE;
|
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 */
|
/* we keep a back pointer here, to avoid going through the ActorMeta */
|
||||||
priv->actor = clutter_actor_meta_get_actor (meta);
|
priv->actor = clutter_actor_meta_get_actor (meta);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user