mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 18:08:03 +02:00
device: flush before setting finished
Otherwise APIs critical for flushing - in particular acquiring the device - do not work.
This commit is contained in:
parent
35e219d08f
commit
932ab2641e
1 changed files with 2 additions and 2 deletions
|
|
@ -175,10 +175,10 @@ cairo_device_finish (cairo_device_t *device)
|
|||
if (device->finished)
|
||||
return;
|
||||
|
||||
device->finished = TRUE;
|
||||
|
||||
cairo_device_flush (device);
|
||||
|
||||
device->finished = TRUE;
|
||||
|
||||
if (device->backend->finish != NULL)
|
||||
device->backend->finish (device);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue