diff --git a/src/cairo-xlib-render-compositor.c b/src/cairo-xlib-render-compositor.c index 94abe9ee3..10360dbec 100644 --- a/src/cairo-xlib-render-compositor.c +++ b/src/cairo-xlib-render-compositor.c @@ -250,6 +250,10 @@ draw_image_boxes (void *_dst, cairo_int_status_t status; int i; + if (image->base.device == dst->base.device && + image->depth != dst->depth) + return CAIRO_INT_STATUS_UNSUPPORTED; + if (image->base.device == dst->base.device && image->depth == dst->depth && _cairo_xlib_shm_surface_get_pixmap (&image->base))