[gegl/gsoc2009-gpu] gegl-buffer-iterator.c: fix segmentation fault caused by a confused pointer to a GPU texture pool en
- From: Jerson Michael Perpetua <jperpetua src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gegl/gsoc2009-gpu] gegl-buffer-iterator.c: fix segmentation fault caused by a confused pointer to a GPU texture pool en
- Date: Sun, 23 Aug 2009 14:32:50 +0000 (UTC)
commit bfa61ca1463a903a3bdb588d0d48101e6a28c405
Author: Jerson Michael Perpetua <jersonperpetua gmail com>
Date: Sun Aug 23 22:31:19 2009 +0800
gegl-buffer-iterator.c: fix segmentation fault caused by a confused pointer to a GPU texture pool entry
gegl/buffer/gegl-buffer-iterator.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-iterator.c b/gegl/buffer/gegl-buffer-iterator.c
index e434a47..f496787 100644
--- a/gegl/buffer/gegl-buffer-iterator.c
+++ b/gegl/buffer/gegl-buffer-iterator.c
@@ -421,7 +421,7 @@ iterator_gpu_texture_pool_get (gint width,
gint cnt;
if (G_UNLIKELY (!gpu_texture_pool))
- gpu_texture_pool = g_array_new (TRUE, TRUE, sizeof (BufInfo));
+ gpu_texture_pool = g_array_new (TRUE, TRUE, sizeof (GpuTextureInfo));
for (cnt = 0; cnt < gpu_texture_pool->len; cnt++)
{
@@ -439,7 +439,7 @@ iterator_gpu_texture_pool_get (gint width,
}
}
{
- GpuTextureInfo info = {0, NULL};
+ GpuTextureInfo info = {1, NULL};
info.texture = gegl_gpu_texture_new (width, height, format);
g_array_append_val (gpu_texture_pool, info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]