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

Eric Anholt <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Dongyeon Kim <[email protected]> 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.

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlCl4GAACgkQHUdvYGzw6vdzxACfVT6nrNIvoZ4B79Ys0q9ZnpMp
3QkAoIM3DPiSwCngjBCsUVAftZB3hUX0
=dM2b
-----END PGP SIGNATURE-----
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.