[gegl/soc-2013-opecl-ops] gegl: gegl_buffer_copy do not mark a gegl_tile_dup'ed tile as stored
- From: Carlos Zubieta <czubieta src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2013-opecl-ops] gegl: gegl_buffer_copy do not mark a gegl_tile_dup'ed tile as stored
- Date: Wed, 11 Sep 2013 12:23:33 +0000 (UTC)
commit eed62799adf08a9202d5bf7c5c6cd47c30ee89b2
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]