paint-volumes: avoid is_complete assert in _axis_align
The removes the pv->is_complete assertion from _clutter_paint_volume_axis_align() and instead if the volume isn't complete it calls _clutter_paint_volume_complete().
This commit is contained in:
parent
e6c58b7fb3
commit
4dc30c255f
@ -762,8 +762,6 @@ _clutter_paint_volume_axis_align (ClutterPaintVolume *pv)
|
|||||||
if (pv->is_empty)
|
if (pv->is_empty)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
g_return_if_fail (pv->is_complete);
|
|
||||||
|
|
||||||
if (G_LIKELY (pv->is_axis_aligned))
|
if (G_LIKELY (pv->is_axis_aligned))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -775,6 +773,9 @@ _clutter_paint_volume_axis_align (ClutterPaintVolume *pv)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!pv->is_complete)
|
||||||
|
_clutter_paint_volume_complete (pv);
|
||||||
|
|
||||||
origin = pv->vertices[0];
|
origin = pv->vertices[0];
|
||||||
max_x = pv->vertices[0].x;
|
max_x = pv->vertices[0].x;
|
||||||
max_y = pv->vertices[0].y;
|
max_y = pv->vertices[0].y;
|
||||||
|
Loading…
Reference in New Issue
Block a user