[gegl] Fix iterator failing to lock tiles
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Fix iterator failing to lock tiles
- Date: Thu, 28 Mar 2013 01:33:04 +0000 (UTC)
commit baaa9bf40c76d414a622c845ddf46a7e43a2096b
Author: Daniel Sabo <DanielSabo gmail com>
Date: Wed Mar 27 18:15:38 2013 -0700
Fix iterator failing to lock tiles
When buffer->soft_format != buffer->format the tile iterator
would fail to lock its tiles, but the outer iterator would
still perform a direct write. This resulted in the modified
tiles not being flushed to their backend.
gegl/buffer/gegl-buffer-iterator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-iterator.c b/gegl/buffer/gegl-buffer-iterator.c
index 61a341e..e4b7933 100644
--- a/gegl/buffer/gegl-buffer-iterator.c
+++ b/gegl/buffer/gegl-buffer-iterator.c
@@ -141,7 +141,7 @@ static void gegl_buffer_tile_iterator_init (GeglBufferTileIterator *i,
i->max_size = i->buffer->tile_storage->tile_width *
i->buffer->tile_storage->tile_height;
- i->same_format = format == buffer->format;
+ i->same_format = format == buffer->soft_format;
/* return at the end,. we still want things initialized a bit .. */
g_return_if_fail (roi.width != 0 && roi.height != 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]