patch [1/1] gl: bug fix in cloning subsurface

"Henry (Yu) Song - SISA" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <3955FA337689574EB32F94B12A7E6E9E0B49C4AF@ex10mail>
    gl: initialize a gl surface with size same as subsurface instead of size of
    dst during cloning subsurface

diff --git a/src/cairo-gl-operand.c b/src/cairo-gl-operand.c
index bc5e541..28cbc1d 100644
--- a/src/cairo-gl-operand.c
+++ b/src/cairo-gl-operand.c
@@ -97,7 +97,8 @@ _cairo_gl_subsurface_clone_operand_init (cairo_gl_operand_t *operand,
 	surface = (cairo_gl_surface_t *)
 	    _cairo_gl_surface_create_scratch (ctx,
 					      sub->target->content,
-					      extents->width, extents->height);
+					      sub->extents.width,
+					      sub->extents.height);
 	if (surface->base.status)
 	    return _cairo_gl_context_release (ctx, surface->base.status);

Thanks

Henry
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.