Fix crash when resetting pixman image transform

Resetting the transform is done by setting it to the identity
transform, not passing in NULL. Passing in NULL causes a crash.
This commit is contained in:
Alexander Larsson 2010-09-21 20:08:46 +02:00 committed by Marc-André Lureau
parent 96faad998e
commit 49c6fca7cf

View File

@ -1751,7 +1751,8 @@ static pixman_image_t *canvas_scale_surface(pixman_image_t *src, const SpiceRect
0, 0, /* dst */
width, height);
pixman_image_set_transform(src, NULL);
pixman_transform_init_identity(&transform);
pixman_image_set_transform(src, &transform);
return surface;
}