diff options
-rw-r--r-- | src/cairo-gl-surface.c | 6 |
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 |