[cairo] [PATCH] gl: Draw image surface to fbo gl surface using intermediate texture

Eric Anholt eric at anholt.net
Thu Nov 15 22:42:40 PST 2012


Dongyeon Kim <dy5.kim at samsung.com> writes:

> Hello,
>
> When I create an image surface from png, and use this surface as
> source to paint to cairo gl surface that is created using FBO, the
> resulting gl surface is just black.
>
> I have spent some time investigating this, and found that cairo was
> uploading data to the texture that is currently being used as target
> framebuffer.
>
> To fix this problem, image data should be uploaded to an intermediate
> texture, and this texture should be rendered into the FBO.
>
> The following patch is a suggested fix for both gl-spans and gl-traps
> compositors.

Huh?  Using glTexImage to set the contents of an FBO sounds perfectly
legal and should have expected behavior.  This sounds like a driver bug.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121115/552ccc5c/attachment.pgp>


More information about the cairo mailing list