[gegl] buffer: keep tile data-pointer indetity in gegl_buffer_linear_new_from_data()
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: keep tile data-pointer indetity in gegl_buffer_linear_new_from_data()
- Date: Wed, 2 Jan 2019 12:29:02 +0000 (UTC)
commit db4a061e6ef8c6b2e895ef235a94c01cc61d8815
Author: Ell <ell_se yahoo com>
Date: Wed Jan 2 07:25:39 2019 -0500
buffer: keep tile data-pointer indetity in gegl_buffer_linear_new_from_data()
In gegl_buffer_linear_new_from_data(), set the buffer's linear
tile's keep_identity flag, to guarantee that its data-pointer
identity is kept throughout the lifetime of the buffer.
gegl/buffer/gegl-buffer-linear.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gegl/buffer/gegl-buffer-linear.c b/gegl/buffer/gegl-buffer-linear.c
index 18bf1ce09..ef74fce59 100644
--- a/gegl/buffer/gegl-buffer-linear.c
+++ b/gegl/buffer/gegl-buffer-linear.c
@@ -106,6 +106,7 @@ gegl_buffer_linear_new_from_data (const gpointer data,
tile->y = 0;
tile->z = 0;
tile->rev = tile->stored_rev + 1;
+ tile->keep_identity = TRUE;
gegl_tile_set_data_full (tile,
(gpointer) data,
bpp * rowstride * extent->height,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]