clutter-offscreen-effect: Don't recreate the material when FBO changes
authorNeil Roberts <neil@linux.intel.com>
Thu, 25 Nov 2010 10:56:50 +0000 (10:56 +0000)
committerNeil Roberts <neil@linux.intel.com>
Thu, 25 Nov 2010 10:56:50 +0000 (10:56 +0000)
commit6ddb8397110f6e6998e0262e5d3dd604cd93d670
treec71a1d042072be1c93de2066845412add4bf9b0b
parent1b2a748d6c180454f0501859b4b02dc8c94d75e0
clutter-offscreen-effect: Don't recreate the material when FBO changes

Previously whenever the size of the FBO changes it would create a new
material and attach the texture to it. This is not good for Cogl
because it throws away any cached state for the material. In
test-rotate the size of the FBO changes constantly so it effectively
uses a new material every paint. For shader effects this also ends up
relinking the shader every paint because the linked programs are part
of the material state.
clutter/clutter-offscreen-effect.c