• Robert Bragg's avatar
    paint-volume: Fix culling bug to handle partial culls · 114133c9
    Robert Bragg authored
    This updates the inner loops of the cull function so now the vertices of
    the polygon being culled are iterated in the inner loop instead of the
    clip planes and we count how many vertices are outside the current
    plane so we can bail out immediately if all the vertices are outside of
    any plane and so we can correctly track partial intersections with the
    clip region.
    The previous approach could catch some partial intersections but for
    example a rectangle that was larger than the clip region centred over
    the clip region with all corners outside would be reported as outside,
    not as a partial intersection.
clutter-paint-volume.c 28.5 KB