[gegl] buffer: change nearest fast path
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: change nearest fast path
- Date: Fri, 20 Jun 2014 07:30:14 +0000 (UTC)
commit e201289da5982cf902552522157d573f9639d040
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Jun 20 05:23:19 2014 +0200
buffer: change nearest fast path
gegl/buffer/gegl-sampler-nearest.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-nearest.c b/gegl/buffer/gegl-sampler-nearest.c
index 44eb5c7..8496b52 100644
--- a/gegl/buffer/gegl-sampler-nearest.c
+++ b/gegl/buffer/gegl-sampler-nearest.c
@@ -209,11 +209,11 @@ gegl_sampler_nearest_prepare (GeglSampler* restrict sampler)
return;
GEGL_SAMPLER_NEAREST (sampler)->buffer_bpp = babl_format_get_bytes_per_pixel (sampler->buffer->format);
- if (sampler->format == sampler->buffer->soft_format)
- {
+ //if (sampler->format == sampler->buffer->soft_format)
+ // {
sampler->get = gegl_sampler_nearest_get_same_format;
- }
- else
+ // }
+ //else
{
sampler->fish = babl_fish (sampler->buffer->soft_format, sampler->format);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]