summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGwenole Beauchesne <[email protected]>2012-04-18 16:38:47 +0200
committerKristian Høgsberg <[email protected]>2012-07-03 16:23:38 -0400
commitd1665388ce53d23ee7853e5083ce6f7192061109 (patch)
tree8fdf119c9814c1d188e175de13d83c687c38b929 /src
parent8818b88748bde6de5a4a98ad237c85151b44c774 (diff)
mesa: add GL_EXT_texture_rg extension for OpenGL ES 2.x.
Diffstat (limited to 'src')
-rw-r--r--src/mapi/glapi/gen/es_EXT.xml8
-rw-r--r--src/mesa/main/APIspec.xml1
-rw-r--r--src/mesa/main/extensions.c1
3 files changed, 10 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml
index b26cac54b79..ad83d9142d1 100644
--- a/src/mapi/glapi/gen/es_EXT.xml
+++ b/src/mapi/glapi/gen/es_EXT.xml
@@ -634,4 +634,12 @@
</function>
</category>
+<!-- 103. GL_EXT_texture_rg -->
+<category name="GL_EXT_texture_rg" number="103">
+ <enum name="RED_EXT" value="0x1903"/>
+ <enum name="RG_EXT" value="0x8227"/>
+ <enum name="R8_EXT" value="0x8229"/>
+ <enum name="RG8_EXT" value="0x822B"/>
+</category>
+
</OpenGLAPI>
diff --git a/src/mesa/main/APIspec.xml b/src/mesa/main/APIspec.xml
index f870cf7db64..b6cf52d074a 100644
--- a/src/mesa/main/APIspec.xml
+++ b/src/mesa/main/APIspec.xml
@@ -4150,6 +4150,7 @@
<category name="OES_packed_depth_stencil"/>
<category name="OES_standard_derivatives"/>
<category name="EXT_texture_format_BGRA8888"/>
+ <category name="EXT_texture_rg"/>
<category name="EXT_read_format_bgra"/>
<category name="EXT_texture_compression_dxt1"/>
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index e4fe73307ad..793cc4e24e0 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -200,6 +200,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_texture_rg", o(ARB_texture_rg), ES2, 2011 },
{ "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 },