diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2012-04-11 18:59:27 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2012-04-12 15:53:59 +0800 |
commit | 701d9a92fa7ab1e0e6dd919a2bfd7a7635c54645 (patch) | |
tree | 6fcad13382ead485c28b94f3fb22991d075f1947 | |
parent | bec97f5fef06416c36f3c599ce1203fa16033fe5 (diff) |
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>
-rw-r--r-- | src/glamor_polylines.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/glamor_polylines.c b/src/glamor_polylines.c index 175e958..70dd6c1 100644 --- a/src/glamor_polylines.c +++ b/src/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; |