[gegl] gegl: gegl_buffer_copy do not mark a gegl_tile_dup'ed tile as stored
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: gegl_buffer_copy do not mark a gegl_tile_dup'ed tile as stored
- Date: Wed, 14 Aug 2013 17:12:06 +0000 (UTC)
commit f132480c0526761515220a69d4ccf6e501a36367
Author: Massimo Valentini <mvalentini src gnome org>
Date: Wed Aug 14 19:11:24 2013 +0200
gegl: gegl_buffer_copy do not mark a gegl_tile_dup'ed tile as stored
otherwise it isn't stored when the cache drops it
and gegl_tile_dup doesn't set x, y, z
gegl/buffer/gegl-buffer-access.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index cbc731e..2abbc51 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -1819,6 +1819,10 @@ gegl_buffer_copy (GeglBuffer *src,
dst_tile = gegl_tile_dup (src_tile);
dst_tile->tile_storage = (void*)storage;
+ dst_tile->x = dtx;
+ dst_tile->y = dty;
+ dst_tile->z = 0;
+ dst_tile->rev++;
gegl_tile_handler_cache_insert (cache, dst_tile, dtx, dty, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]