diff options
author | Uli Schlachter <psychon@znc.in> | 2010-10-12 21:56:46 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-13 12:29:38 +0100 |
commit | 5a0f8f7320c916c86c4fd66a5aa8cb8545c00643 (patch) | |
tree | 150ee9d2c501c9a0aad34a81ee39ea31d37201c4 | |
parent | 35b1688c92d2c0e1353fc2b5e89abb29c2acda8d (diff) |
_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 <psychon@znc.in>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/cairo-xcb-surface-render.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |