summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-05 16:20:53 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-05 17:17:26 +0000
commitdd73add00c7886467d60e27cca8311e3cf5ee2e2 (patch)
tree09776924bf43aedf0b11d63815e0cb78c13272fd
parentf7daaa8fce8dd399500551d84cf6207824e5c28e (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.c2
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.