summaryrefslogtreecommitdiff
path: root/src/glamor_putimage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glamor_putimage.c')
-rw-r--r--src/glamor_putimage.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glamor_putimage.c b/src/glamor_putimage.c
index 9202e54..e4f9082 100644
--- a/src/glamor_putimage.c
+++ b/src/glamor_putimage.c
@@ -229,10 +229,12 @@ glamor_put_image_xybitmap(DrawablePtr drawable, GCPtr gc,
glamor_fallback(": to %p (%c)\n",
drawable, glamor_get_drawable_location(drawable));
fail:
- if (glamor_prepare_access(drawable, GLAMOR_ACCESS_RW)) {
+ if (glamor_prepare_access(drawable, GLAMOR_ACCESS_RW) &&
+ glamor_prepare_access_gc(gc)) {
fbPutImage(drawable, gc, 1, x, y, w, h, left_pad, XYBitmap,
bits);
}
+ glamor_finish_access_gc(gc);
glamor_finish_access(drawable);
}
#endif