ClutterOffscreenEffect: Don't throw away the material for a new actor
authorNeil Roberts <neil@linux.intel.com>
Sat, 27 Nov 2010 16:27:59 +0000 (16:27 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 29 Nov 2010 10:55:52 +0000 (10:55 +0000)
commit2dc9e0dc2941a1f805e71a656585037ced0ed721
tree6d17c78f5128b1d0949165c5c4c87193d7ce32f5
parentb63e9ee8f8717dbf73e15df1e9a9d115dcb45504
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
clutter/clutter-offscreen-effect.c