glamor_polylines: Don't fallback for non-solid fill.

As glamor_fill/fbFill will handle non-solid fill correctly.
We don't fallback it here.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2012-04-11 18:59:27 +08:00 committed by Eric Anholt
parent b5bd9a2d90
commit cf0e206a0f

View File

@ -54,13 +54,12 @@ _glamor_poly_lines(DrawablePtr drawable, GCPtr gc, int mode, int n,
*/
goto wide_line;
}
if (gc->lineStyle != LineSolid || gc->fillStyle != FillSolid) {
if (gc->lineStyle != LineSolid) {
glamor_fallback
("non-solid fill line style %d, fill style %d\n",
gc->lineStyle, gc->fillStyle);
("non-solid fill line style %d\n",
gc->lineStyle);
goto fail;
}
rects = malloc(sizeof(xRectangle) * (n - 1));
x1 = points[0].x;
y1 = points[0].y;