mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 05:18:01 +02:00
script: Flush prior to modifying the image data.
This commit is contained in:
parent
03f7bfc351
commit
3814855a64
1 changed files with 1 additions and 0 deletions
|
|
@ -5005,6 +5005,7 @@ _set_source_image (csi_t *ctx)
|
|||
* principally to remove the pixman ops from the profiles.
|
||||
*/
|
||||
if (_csi_likely (_matching_images (surface, source))) {
|
||||
cairo_surface_flush (surface);
|
||||
memcpy (cairo_image_surface_get_data (surface),
|
||||
cairo_image_surface_get_data (source),
|
||||
cairo_image_surface_get_height (source) * cairo_image_surface_get_stride (source));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue