script: Flush prior to modifying the image data.

This commit is contained in:
Chris Wilson 2010-04-14 20:22:14 +01:00
parent 03f7bfc351
commit 3814855a64

View file

@ -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));