summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2012-05-28 14:07:04 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2012-05-28 16:12:21 +0100
commitf6ce2a93881f7faf00e6eeb27bbce50904714ffa (patch)
tree7f182d1aad2e90da5b3ee242b6d154d30c7b0e5d
parentdf18b3cd45baf216c79aaf28c648fb4a0eaa89ca (diff)
downloadclutter-f6ce2a93881f7faf00e6eeb27bbce50904714ffa.tar.gz
paint-volume: Use the correct coordinate for axis alignment
The z coordinate of the origin should be checked against the same coordinate of the vertex behind it. Given that most actors are flat surfaces, this check should always succeed. https://bugzilla.gnome.org/show_bug.cgi?id=675396
-rw-r--r--clutter/clutter-paint-volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter/clutter-paint-volume.c b/clutter/clutter-paint-volume.c
index 725be7917..ba7abb84b 100644
--- a/clutter/clutter-paint-volume.c
+++ b/clutter/clutter-paint-volume.c
@@ -908,7 +908,7 @@ _clutter_paint_volume_axis_align (ClutterPaintVolume *pv)
if (G_LIKELY (pv->vertices[0].x == pv->vertices[1].x &&
pv->vertices[0].y == pv->vertices[3].y &&
- pv->vertices[0].z == pv->vertices[4].y))
+ pv->vertices[0].z == pv->vertices[4].z))
{
pv->is_axis_aligned = TRUE;
return;