mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
Read-only mirror of https://gitlab.gnome.org/GNOME/mutter
47ccbf472e
Previously in cogl_read_pixels we assume the format of the framebuffer is always premultiplied because that is the most likely format with the default Cogl blend mode. However when the framebuffer is bound to a texture we should be able to make a better guess at the format because we know the texture keeps track of the premult status. This patch adds an internal format member to CoglFramebuffer. For onscreen framebuffers we still assume it is RGBA_8888_PRE but for offscreen to textures we copy the texture format. cogl_read_pixels uses this to determine whether the data returned by glReadPixels will be premultiplied. http://bugzilla.clutter-project.org/show_bug.cgi?id=2414 |
||
---|---|---|
cogl | ||
doc | ||
pango | ||
Makefile.am |