Re: [PATCH] gl: Add BGRA download support for GLES2

Martin Robinson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On 12/09/2012 01:25 PM, Chris Wilson wrote:
> {
>    /* Desktop GL always supports BGRA formats, but for ES we have to
>     * look for a specific extension, and that only matches with cairo's
>     * byte packing for litte-endian machines.
>     */
>    if (gl_flavor == CAIRO_GL_FLAVOR_DESKTOP)
>       return true;
>
>    if (gl_flavor != CAIRO_GL_FLAVOR_ES)
>       return false;
>
>    if (!_cairo_is_little_endian()
>       return flse;
>
>    return _cairo_gl_has_extension ("EXT_read_format_bgra"));

Thanks for the comments! I'll land the patch with your suggestion.

--Martin
-- 
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.