gl: Set the device offset on map-to-image

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-05 16:20:53 +00:00
parent f7daaa8fce
commit dd73add00c

View file

@ -1042,6 +1042,8 @@ _cairo_gl_surface_map_to_image (void *abstract_surface,
return _cairo_surface_create_in_error (status);
}
cairo_surface_set_device_offset (&image->base, -extents->x, -extents->y);
/* This is inefficient, as we'd rather just read the thing without making
* it the destination. But then, this is the fallback path, so let's not
* fall back instead.