[Mesa-dev] [PATCH] st/mesa: Expose EXT_texture_fromat_BGRA8888 for gles1/2
Brian Paul
brianp at vmware.com
Sat Jan 15 18:09:12 PST 2011
On 01/15/2011 04:13 AM, Benjamin Franzke wrote:
> ---
> src/mesa/state_tracker/st_extensions.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
> index d240cab..9534cc9 100644
> --- a/src/mesa/state_tracker/st_extensions.c
> +++ b/src/mesa/state_tracker/st_extensions.c
> @@ -260,6 +260,8 @@ void st_init_extensions(struct st_context *st)
> ctx->Extensions.EXT_texture_env_dot3 = GL_TRUE;
> ctx->Extensions.EXT_texture_lod_bias = GL_TRUE;
> ctx->Extensions.EXT_vertex_array_bgra = GL_TRUE;
> + if (ctx->API == API_OPENGLES || ctx->API == API_OPENGLES2)
> + ctx->Extensions.EXT_texture_format_BGRA8888 = GL_TRUE;
>
> ctx->Extensions.APPLE_vertex_array_object = GL_TRUE;
>
The current glTexImage code will not accept
internalFormat==GL_BGRA_EXT. There's some work to do before we can
advertise that extension.
-Brian
More information about the mesa-dev
mailing list