From cf0e206a0ff6538eb286c06098023b9e29b00c74 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Wed, 11 Apr 2012 18:59:27 +0800 Subject: [PATCH] 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 --- glamor/glamor_polylines.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/glamor/glamor_polylines.c b/glamor/glamor_polylines.c index 175e9580d..70dd6c161 100644 --- a/glamor/glamor_polylines.c +++ b/glamor/glamor_polylines.c @@ -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;