diff options
author | Benjamin Franzke <[email protected]> | 2012-03-24 08:50:47 +0100 |
---|---|---|
committer | Benjamin Franzke <[email protected]> | 2012-03-27 09:03:19 +0200 |
commit | 860f4846c711ac2e9d597314a692561bf34c86ba (patch) | |
tree | f0a54d32f1f8f0548c20fae02e52776744b3d8ce | |
parent | e9a5457d730e4616ec6820029ba80e9641b22652 (diff) |
gles: Enable the GL_EXT_read_format_bgra extension
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 <[email protected]>
-rw-r--r-- | src/mesa/main/APIspec.xml | 2 | ||||
-rw-r--r-- | src/mesa/main/extensions.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/APIspec.xml b/src/mesa/main/APIspec.xml index 437b9637353..29975f678b4 100644 --- a/src/mesa/main/APIspec.xml +++ b/src/mesa/main/APIspec.xml @@ -3830,6 +3830,7 @@ <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 @@ -4124,6 +4125,7 @@ <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"/> diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 732b9a6ecfc..716673954ad 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -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 }, |