summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-08 09:19:53 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-08 09:19:53 +0100
commit45759e5a0fb20a632f66a8dd206833b55a95f840 (patch)
treec4776f6f7e060a0396290253c23795ce4b7fcc22
parent67d40e5c7300c4082484dbda5c81808737bb2ac5 (diff)
[gl] Supply extents for acquire source image
I have no idea how we survived for so long without supplying the source extents...
-rw-r--r--src/cairo-gl-surface.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index 0e689a35..e73646ae 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -739,10 +739,14 @@ _cairo_gl_surface_acquire_source_image (void *abstract_surface,
void **image_extra)
{
cairo_gl_surface_t *surface = abstract_surface;
+ cairo_rectangle_int_t extents;
*image_extra = NULL;
- return _cairo_gl_surface_get_image (surface, NULL, image_out, NULL);
+ extents.x = extents.y = 0;
+ extents.width = surface->width;
+ extents.height = surface->height;
+ return _cairo_gl_surface_get_image (surface, &extents, image_out, NULL);
}
static void