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
This commit is contained in:
parent
58b13aa412
commit
8e9992de7c
@ -908,7 +908,7 @@ _clutter_paint_volume_axis_align (ClutterPaintVolume *pv)
|
|||||||
|
|
||||||
if (G_LIKELY (pv->vertices[0].x == pv->vertices[1].x &&
|
if (G_LIKELY (pv->vertices[0].x == pv->vertices[1].x &&
|
||||||
pv->vertices[0].y == pv->vertices[3].y &&
|
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;
|
pv->is_axis_aligned = TRUE;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user