[Mesa-dev] [PATCH 1/2] mesa: add GL_EXT_texture_rg extension for OpenGL ES 2.x.

Brian Paul brianp at vmware.com
Fri Apr 20 09:52:05 PDT 2012


On 04/20/2012 09:59 AM, Gwenole Beauchesne wrote:
> ---
>   include/GLES2/gl2ext.h        |   13 +++++++++++++
>   src/mapi/glapi/gen/es_EXT.xml |    8 ++++++++
>   src/mesa/main/APIspec.xml     |    1 +
>   src/mesa/main/extensions.c    |    1 +
>   4 files changed, 23 insertions(+), 0 deletions(-)
>
> diff --git a/include/GLES2/gl2ext.h b/include/GLES2/gl2ext.h
> index 4eae246..25a9a34 100644
> --- a/include/GLES2/gl2ext.h
> +++ b/include/GLES2/gl2ext.h
> @@ -292,6 +292,14 @@ typedef void* GLeglImageOES;
>   #define GL_BGRA_EXT                                             0x80E1
>   #endif
>
> +/* GL_EXT_texture_rg */
> +#ifndef GL_EXT_texture_rg
> +#define GL_RED_EXT                                              0x1903
> +#define GL_RG_EXT                                               0x8227
> +#define GL_R8_EXT                                               0x8229
> +#define GL_RG8_EXT                                              0x822B
> +#endif
> +
>   /* GL_EXT_texture_type_2_10_10_10_REV */
>   #ifndef GL_EXT_texture_type_2_10_10_10_REV
>   #define GL_UNSIGNED_INT_2_10_10_10_REV_EXT                      0x8368
> @@ -882,6 +890,11 @@ typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GL
>   #define GL_EXT_texture_format_BGRA8888 1
>   #endif
>
> +/* GL_EXT_texture_rg */
> +#ifndef GL_EXT_texture_rg
> +#define GL_EXT_texture_rg 1
> +#endif
> +
>   /* GL_EXT_texture_type_2_10_10_10_REV */
>   #ifndef GL_EXT_texture_type_2_10_10_10_REV
>   #define GL_EXT_texture_type_2_10_10_10_REV 1


For include/GLES2/gl2ext.h we should simply import the latest version 
of it from the khronos website, as a separate commit.

-Brian


More information about the mesa-dev mailing list