[Mesa-dev] [PATCH] mesa: expose GL_EXT_texture_sRGB_decode in ES2 contexts

Ilia Mirkin imirkin at alum.mit.edu
Thu Dec 4 11:31:44 PST 2014


Oh hm. Apparently EXT_sRGB is required for this [or ES3, but that's
not available on the driver I'm interested quite yet]. I'll see if
that can be added easily.

On Thu, Dec 4, 2014 at 12:42 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>
> https://www.opengl.org/registry/specs/EXT/texture_sRGB_decode.txt
>
> Explicitly talks about ES, other drivers seem to expose it. Not sure about ES1.
>
>  src/mesa/main/extensions.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
> index 0df04c2..57176c8 100644
> --- a/src/mesa/main/extensions.c
> +++ b/src/mesa/main/extensions.c
> @@ -267,7 +267,7 @@ static const struct extension extension_table[] = {
>     { "GL_EXT_texture_shared_exponent",             o(EXT_texture_shared_exponent),             GL,             2004 },
>     { "GL_EXT_texture_snorm",                       o(EXT_texture_snorm),                       GL,             2009 },
>     { "GL_EXT_texture_sRGB",                        o(EXT_texture_sRGB),                        GL,             2004 },
> -   { "GL_EXT_texture_sRGB_decode",                 o(EXT_texture_sRGB_decode),                        GL,      2006 },
> +   { "GL_EXT_texture_sRGB_decode",                 o(EXT_texture_sRGB_decode),                 GL |       ES2, 2006 },
>     { "GL_EXT_texture_swizzle",                     o(EXT_texture_swizzle),                     GL,             2008 },
>     { "GL_EXT_texture_type_2_10_10_10_REV",         o(dummy_true),                                         ES2, 2008 },
>     { "GL_EXT_timer_query",                         o(EXT_timer_query),                         GL,             2006 },
> --
> 2.0.4
>


More information about the mesa-dev mailing list