[cogl] cogl-texture-pixmap-x11: Fix the foreach_sub_texture_in_region impl
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] cogl-texture-pixmap-x11: Fix the foreach_sub_texture_in_region impl
- Date: Tue, 20 Dec 2011 12:48:21 +0000 (UTC)
commit 24fe7c300c8340a4f96ed826e652156c9fabcce2
Author: Neil Roberts <neil linux intel com>
Date: Mon Dec 19 22:53:31 2011 +0000
cogl-texture-pixmap-x11: Fix the foreach_sub_texture_in_region impl
The foreach_sub_texture_in_region implementation tries to forward the
function on to its child texture but it was mistakenly forwarding back
on to itself so it would just recurse endlessly and crash.
cogl/winsys/cogl-texture-pixmap-x11.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/cogl/winsys/cogl-texture-pixmap-x11.c b/cogl/winsys/cogl-texture-pixmap-x11.c
index cb4a56d..33d74ba 100644
--- a/cogl/winsys/cogl-texture-pixmap-x11.c
+++ b/cogl/winsys/cogl-texture-pixmap-x11.c
@@ -802,7 +802,7 @@ _cogl_texture_pixmap_x11_foreach_sub_texture_in_region
data.callback = callback;
data.user_data = user_data;
- cogl_meta_texture_foreach_in_region (COGL_META_TEXTURE (tex),
+ cogl_meta_texture_foreach_in_region (COGL_META_TEXTURE (child_tex),
virtual_tx_1,
virtual_ty_1,
virtual_tx_2,
@@ -813,7 +813,7 @@ _cogl_texture_pixmap_x11_foreach_sub_texture_in_region
&data);
}
else
- cogl_meta_texture_foreach_in_region (COGL_META_TEXTURE (tex),
+ cogl_meta_texture_foreach_in_region (COGL_META_TEXTURE (child_tex),
virtual_tx_1,
virtual_ty_1,
virtual_tx_2,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]