diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-05 16:20:53 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-05 17:17:26 +0000 |
commit | dd73add00c7886467d60e27cca8311e3cf5ee2e2 (patch) | |
tree | 09776924bf43aedf0b11d63815e0cb78c13272fd | |
parent | f7daaa8fce8dd399500551d84cf6207824e5c28e (diff) |
gl: Set the device offset on map-to-image
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/cairo-gl-surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c index b6dbedc7..c201c513 100644 --- a/src/cairo-gl-surface.c +++ b/src/cairo-gl-surface.c @@ -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. |