[cairo-commit] src/cairo-gl-surface.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Sep 8 02:13:20 PDT 2009


 src/cairo-gl-surface.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 45759e5a0fb20a632f66a8dd206833b55a95f840
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Sep 8 09:19:53 2009 +0100

    [gl] Supply extents for acquire source image
    
    I have no idea how we survived for so long without supplying the source
    extents...

diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index 0e689a3..e73646a 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


More information about the cairo-commit mailing list