ARB_texture_rg: Add GLX protocol support
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Nov 2009 19:03:31 +0000 (11:03 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 1 Oct 2010 22:49:12 +0000 (15:49 -0700)
src/glx/compsize.c
src/glx/glxextensions.c
src/glx/glxextensions.h

index ccb3a0e924e57e117276bcce63fa0df5c01ab54d..f69ffaba31619336b3946bfad77561a812b86099 100644 (file)
@@ -66,6 +66,7 @@ __glElementsPerGroup(GLenum format, GLenum type)
    case GL_RGB:
    case GL_BGR:
       return 3;
+   case GL_RG:
    case GL_422_EXT:
    case GL_422_REV_EXT:
    case GL_422_AVERAGE_EXT:
index 23161ef49a1d659b1cabf76264237e5c4055ea47..3a0e64c46d1afa623dba78b6c7b51ae94918c71b 100644 (file)
@@ -165,6 +165,7 @@ static const struct extension_info known_gl_extensions[] = {
    { GL(ARB_texture_mirrored_repeat),    VER(1,4), Y, N, N, N },
    { GL(ARB_texture_non_power_of_two),   VER(1,5), Y, N, N, N },
    { GL(ARB_texture_rectangle),          VER(0,0), Y, N, N, N },
+   { GL(ARB_texture_rg),                 VER(0,0), Y, N, N, N },
    { GL(ARB_transpose_matrix),           VER(1,3), Y, N, Y, N },
    { GL(ARB_vertex_buffer_object),       VER(1,5), N, N, N, N },
    { GL(ARB_vertex_program),             VER(0,0), Y, N, N, N },
index a11fe88ffc987a32b2ebbc1ff9b6a7561965af22..787766183389137be00609444a128ca4a49013f1 100644 (file)
@@ -93,6 +93,7 @@ enum
    GL_ARB_texture_mirrored_repeat_bit,
    GL_ARB_texture_non_power_of_two_bit,
    GL_ARB_texture_rectangle_bit,
+   GL_ARB_texture_rg_bit,
    GL_ARB_transpose_matrix_bit,
    GL_ARB_vertex_buffer_object_bit,
    GL_ARB_vertex_program_bit,