mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 10:58:15 +02:00
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>
This commit is contained in:
parent
69d97d97be
commit
97282ef51a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue