[Cogl] [PATCH] gles: Support the GL_EXT_texture_format_BGRA8888 extension
Robert Bragg
robert at sixbynine.org
Wed Mar 21 11:47:38 PDT 2012
>
>
> diff --git a/cogl/driver/gles/cogl-texture-driver-gles.c
> b/cogl/driver/gles/cogl-texture-driver-gles.c
> index 2bc596b..62a65ee 100644
> --- a/cogl/driver/gles/cogl-texture-driver-gles.c
> +++ b/cogl/driver/gles/cogl-texture-driver-gles.c
> @@ -407,6 +407,8 @@ _cogl_texture_driver_pixel_format_to_gl
> (CoglPixelFormat format,
> GLenum glformat = 0;
> GLenum gltype;
>
> + _COGL_GET_CONTEXT (ctx, 0);
> +
> required_format = format;
>
depending on how much hassle it would be to change, I've been trying to
avoid adding uses of _COGL_GET_CONTEXT in new code since the ongoing goal
is to remove the dependence within cogl on a global context.
no biggie if it would be too awkward to change at this point though.
other than that the patch looks good to land to me.
regards,
- Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/cogl/attachments/20120321/6884c49e/attachment.htm>
More information about the Cogl
mailing list