Commit 4417a2dc authored by Øyvind Kolås's avatar Øyvind Kolås

reset the valid rectangle when prepare is called. reset the valid

* gegl/buffer/gegl-sampler.c: (gegl_sampler_prepare): reset the
valid rectangle when prepare is called.
* operations/affine/affine.c: (process): reset the valid rectangle
before starting processing.

svn path=/trunk/; revision=2488
parent 9f235448
2008-06-20 Øyvind Kolås <pippin@gimp.org>
* gegl/buffer/gegl-sampler.c: (gegl_sampler_prepare): reset the
valid rectangle when prepare is called.
* operations/affine/affine.c: (process): reset the valid rectangle
before starting processing.
2008-06-19 Øyvind Kolås <pippin@gimp.org>
* gegl/buffer/gegl-sampler.c: (gegl_sampler_get_from_buffer): fetch
......
......@@ -131,6 +131,11 @@ gegl_sampler_prepare (GeglSampler *self)
if (klass->prepare)
klass->prepare (self);
/* this makes the cache rect invalid, in case the data in the buffer has
* changed
*/
self->sampler_rectangle.width=0;
self->sampler_rectangle.height=0;
#if 0
if (self->cache_buffer) /* to force a regetting of the region, even
if the cached getter might be valid
......
......@@ -740,6 +740,7 @@ process (GeglOperation *operation,
{
/* XXX: add back more samplers */
g_object_set(affine->sampler, "buffer", input, NULL);
gegl_sampler_prepare (affine->sampler);
affine_generic (output, input, affine->matrix, affine->sampler);
g_object_unref(affine->sampler->buffer);
affine->sampler->buffer = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment