sna: Check after filtering points before submitting boxes to be drawn

As we clip the points when converting them into GPU boxes, check that we
have something to draw before submitting the commands.

Reported-by: Ian Gay <gay@sfu.ca>
References: https://bugs.freedesktop.org/show_bug.cgi?id=86075
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-11-10 07:42:42 +00:00
parent 9ea242c275
commit 0267f5902d
1 changed files with 2 additions and 1 deletions

View File

@ -7251,7 +7251,8 @@ sna_poly_point__gpu(DrawablePtr drawable, GCPtr gc,
b++;
}
} while (--nbox);
fill.boxes(data->sna, &fill, box, b - box);
if (b != box)
fill.boxes(data->sna, &fill, box, b - box);
}
fill.done(data->sna, &fill);
}