[mutter] Fix check for zero-sized textures in MutterShaped texture
- From: Tomas Frydrych <tomasf src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mutter] Fix check for zero-sized textures in MutterShaped texture
- Date: Tue, 4 Aug 2009 07:46:55 +0000 (UTC)
commit 245908909baa12cf0fca53d8eeb2a6205bf2e5ed
Author: Tomas Frydrych <tf linux intel com>
Date: Mon Aug 3 17:11:15 2009 +0100
Fix check for zero-sized textures in MutterShaped texture
Patch by Jon Nettleton <jon nettleton gmail com>
http://bugzilla.openedhand.com/show_bug.cgi?id=1538
http://bugzilla.gnome.org/show_bug.cgi?id=590646
src/compositor/mutter-shaped-texture.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/compositor/mutter-shaped-texture.c b/src/compositor/mutter-shaped-texture.c
index fd35a61..bcd78cf 100755
--- a/src/compositor/mutter-shaped-texture.c
+++ b/src/compositor/mutter-shaped-texture.c
@@ -274,7 +274,7 @@ mutter_shaped_texture_paint (ClutterActor *actor)
tex_width = cogl_texture_get_width (paint_tex);
tex_height = cogl_texture_get_height (paint_tex);
- if (tex_width == 0 || tex_width == 0) /* no contents yet */
+ if (tex_width == 0 || tex_height == 0) /* no contents yet */
return;
if (paint_tex == COGL_INVALID_HANDLE)
@@ -419,8 +419,8 @@ mutter_shaped_texture_pick (ClutterActor *actor,
tex_width = cogl_texture_get_width (paint_tex);
tex_height = cogl_texture_get_height (paint_tex);
- if (tex_width == 0 || tex_width == 0) /* no contents yet */
- return;
+ if (tex_width == 0 || tex_height == 0) /* no contents yet */
+ return;
mutter_shaped_texture_ensure_mask (stex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]