diff options
Diffstat (limited to 'src/glamor_polylines.c')
-rw-r--r-- | src/glamor_polylines.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/glamor_polylines.c b/src/glamor_polylines.c index 8891d3f..36636f0 100644 --- a/src/glamor_polylines.c +++ b/src/glamor_polylines.c @@ -231,13 +231,12 @@ _glamor_poly_lines(DrawablePtr drawable, GCPtr gc, int mode, int n, return FALSE; if (gc->lineWidth == 0) { - if (glamor_prepare_access(drawable, GLAMOR_ACCESS_RW)) { - if (glamor_prepare_access_gc(gc)) { - fbPolyLine(drawable, gc, mode, n, points); - glamor_finish_access_gc(gc); - } - glamor_finish_access(drawable, GLAMOR_ACCESS_RW); + if (glamor_prepare_access(drawable, GLAMOR_ACCESS_RW) && + glamor_prepare_access_gc(gc)) { + fbPolyLine(drawable, gc, mode, n, points); } + glamor_finish_access_gc(gc); + glamor_finish_access(drawable); } else { wide_line: /* fb calls mi functions in the lineWidth != 0 case. */ |