[gegl] buffer: fix caching of fetch function in sampler_prepare
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: fix caching of fetch function in sampler_prepare
- Date: Tue, 1 Jul 2014 00:25:59 +0000 (UTC)
commit 808f3234b7b200d1bc63acf22e325152cad4d9bc
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Jul 1 02:25:48 2014 +0200
buffer: fix caching of fetch function in sampler_prepare
gegl/buffer/gegl-sampler.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler.c b/gegl/buffer/gegl-sampler.c
index bebdd1b..39ae96d 100644
--- a/gegl/buffer/gegl-sampler.c
+++ b/gegl/buffer/gegl-sampler.c
@@ -156,6 +156,8 @@ gegl_sampler_prepare (GeglSampler *self)
if (!self->format)
self->format = self->buffer->soft_format;
+ self->get = klass->get; /* cache the sampler in the instance */
+ /* migh be overridden by samplers prepare*/
if (klass->prepare)
klass->prepare (self);
@@ -169,7 +171,6 @@ gegl_sampler_prepare (GeglSampler *self)
self->level[0].sampler_rectangle.width = 0;
self->level[0].sampler_rectangle.height = 0;
- self->get = klass->get; /* cache the sampler in the instance */
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]