From 5a0f8f7320c916c86c4fd66a5aa8cb8545c00643 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 12 Oct 2010 21:56:46 +0200 Subject: [PATCH] _cairo_xcb_surface_ensure_picture: Check fallback When an XCB surface's fallback member is not NULL, we did some rendering that the X server couldn't do for us and thus did that internally in cairo instead. This means the X drawable's content is out of date and should not be used for drawing anything. This adds an assert which checks for that situation. Signed-off-by: Uli Schlachter Signed-off-by: Chris Wilson --- src/cairo-xcb-surface-render.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cairo-xcb-surface-render.c b/src/cairo-xcb-surface-render.c index 2ce8c9eaa..40682c0f0 100644 --- a/src/cairo-xcb-surface-render.c +++ b/src/cairo-xcb-surface-render.c @@ -301,6 +301,7 @@ static void _cairo_xcb_surface_ensure_picture (cairo_xcb_surface_t *surface) { if (surface->picture == XCB_NONE) { + assert (surface->fallback == NULL); surface->picture = _cairo_xcb_connection_get_xid (surface->connection); _cairo_xcb_connection_render_create_picture (surface->connection, surface->picture,