[cairo] [PATCH] gl: Draw image surface to fbo gl surface using intermediate texture
eric at anholt.net
Thu Nov 15 22:42:40 PST 2012
Dongyeon Kim <dy5.kim at samsung.com> writes:
> 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
> 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
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
Size: 197 bytes
Desc: not available
More information about the cairo