gles: Enable the GL_EXT_read_format_bgra extension
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Sat, 24 Mar 2012 07:50:47 +0000 (08:50 +0100)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Tue, 27 Mar 2012 07:03:19 +0000 (09:03 +0200)
Also fixes the usage of GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES,
which may be set to a BGRA format e.g. for a MESA_FORMAT_ARGB8888 fb.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/APIspec.xml
src/mesa/main/extensions.c

index 437b963735367b31b487c77746d26c39bff43a5e..29975f678b4c9626566fe192e08dea3193bb6fc0 100644 (file)
        <category name="OES_mapbuffer"/>
        <category name="EXT_texture_filter_anisotropic"/>
        <category name="EXT_texture_format_BGRA8888"/>
+       <category name="EXT_read_format_bgra"/>
 
        <category name="ARB_texture_non_power_of_two"/>
        <!-- disabled due to missing enums
        <category name="OES_packed_depth_stencil"/>
        <category name="OES_standard_derivatives"/>
        <category name="EXT_texture_format_BGRA8888"/>
+       <category name="EXT_read_format_bgra"/>
 
        <category name="EXT_texture_compression_dxt1"/>
        <category name="EXT_blend_minmax"/>
index 732b9a6ecfc26cdfaac91449d7ae4dff76847411..716673954adbf2fd59d1e6f9eaa090a81d0552de 100644 (file)
@@ -198,6 +198,7 @@ static const struct extension extension_table[] = {
    { "GL_EXT_texture_env_dot3",                    o(EXT_texture_env_dot3),                    GL,             2000 },
    { "GL_EXT_texture_filter_anisotropic",          o(EXT_texture_filter_anisotropic),          GL | ES1 | ES2, 1999 },
    { "GL_EXT_texture_format_BGRA8888",             o(dummy_true),                                   ES1 | ES2, 2005 },
+   { "GL_EXT_read_format_bgra",                    o(dummy_true),                                   ES1 | ES2, 2009 },
    { "GL_EXT_texture_integer",                     o(EXT_texture_integer),                     GL,             2006 },
    { "GL_EXT_texture_lod_bias",                    o(dummy_true),                              GL | ES1,       1999 },
    { "GL_EXT_texture_mirror_clamp",                o(EXT_texture_mirror_clamp),                GL,             2004 },