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

Ilia Mirkin imirkin at alum.mit.edu
Thu Dec 4 09:42:05 PST 2014


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