paint-volume: Use the correct coordinate for axis alignment
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 28 May 2012 13:07:04 +0000 (14:07 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 28 May 2012 14:22:54 +0000 (15:22 +0100)
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

clutter/clutter-paint-volume.c

index 725be79..ba7abb8 100644 (file)
@@ -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;