diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-13 17:00:24 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-13 17:00:24 +0100 |
commit | 97282ef51a01ae2ac3a7a8bf3ebce841a60dc907 (patch) | |
tree | ed9f6e38b2eab24d04bee0289b2e5b6c724ed4c4 | |
parent | 69d97d97bea86e7f4223d857803fb7f0ec0d369f (diff) |
xlib: Do not call _cairo_xlib_surface_flush directly
Use the higher level layer to be sure we detach any snapshots and other
cached data that is invalidated along with the change of Drawable.
Pointed out by the eternally wise Uli Schlachter.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/cairo-xlib-surface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c index dd9fc117..58576b82 100644 --- a/src/cairo-xlib-surface.c +++ b/src/cairo-xlib-surface.c @@ -2067,7 +2067,7 @@ cairo_xlib_surface_set_size (cairo_surface_t *abstract_surface, return; } - status = _cairo_xlib_surface_flush (abstract_surface, 0); + status = _cairo_surface_flush (abstract_surface, 0); if (unlikely (status)) { _cairo_surface_set_error (abstract_surface, status); return; @@ -2128,7 +2128,7 @@ cairo_xlib_surface_set_drawable (cairo_surface_t *abstract_surface, if (surface->owns_pixmap) return; - status = _cairo_xlib_surface_flush (abstract_surface, 0); + status = _cairo_surface_flush (abstract_surface, 0); if (unlikely (status)) { _cairo_surface_set_error (abstract_surface, status); return; |