Commit a0a52be7 authored by Zhigang Gong's avatar Zhigang Gong

glamor: Fallback to fbPolylines for diagonal poly_line.

It's better to give a correct output when we haven't
implement all the code path.
Signed-off-by: default avatarZhigang Gong <zhigang.gong@linux.intel.com>
parent d7f8b888
......@@ -76,17 +76,13 @@ glamor_poly_lines(DrawablePtr drawable, GCPtr gc, int mode, int n,
x2 = points[i + 1].x;
y2 = points[i + 1].y;
}
if (x1 != x2 && y1 != y2) {
PixmapPtr pixmap = glamor_get_drawable_pixmap(drawable);
free(rects);
ErrorF("stub diagonal poly_line\n");
glamor_solid_fail_region(pixmap, x1, y1, x2 - x1, y2 - y1);
glamor_fallback("stub diagonal poly_line\n");
goto fail;
return;
}
if (x1 < x2) {
rects[i].x = x1;
rects[i].width = x2 - x1 + 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment