mesa: Add/remove extensions in extension string
authorChad Versace <chad.versace@intel.com>
Mon, 10 Jan 2011 05:53:52 +0000 (21:53 -0800)
committerChad Versace <chad.versace@intel.com>
Wed, 12 Jan 2011 23:45:03 +0000 (15:45 -0800)
Add GL_OES_stencil8 to ES2.

Remove the following:
   GL_OES_compressed_paletted_texture : ES1
   GL_OES_depth32                     : ES1, ES2
   GL_OES_stencil1                    : ES1, ES2
   GL_OES_stencil4                    : ES1, ES2
Mesa advertised these extensions, but did not actually support them.

Reviewed-by: Ian Romanick <idr@freedesktop.org>
src/mesa/main/extensions.c

index ca03c09ffecdd2253040f16afa2a7290a9562633..851bf9ee59bfbec8209755c1e078706e2d55fb8f 100644 (file)
@@ -208,9 +208,9 @@ static const struct extension extension_table[] = {
    { "GL_OES_blend_func_separate",                 o(EXT_blend_func_separate),                      ES1       },
    { "GL_OES_blend_subtract",                      o(EXT_blend_subtract),                           ES1       },
    { "GL_OES_byte_coordinates",                    o(dummy_true),                                   ES1       },
-   { "GL_OES_compressed_paletted_texture",         o(dummy_true),                                   ES1       },
+   { "GL_OES_compressed_paletted_texture",         o(dummy_false),                     DISABLE                },
    { "GL_OES_depth24",                             o(ARB_framebuffer_object),                       ES1 | ES2 },
-   { "GL_OES_depth32",                             o(ARB_framebuffer_object),                       ES1 | ES2 },
+   { "GL_OES_depth32",                             o(dummy_false),                     DISABLE                },
    { "GL_OES_depth_texture",                       o(ARB_depth_texture),                                  ES2 },
 #if FEATURE_OES_draw_texture
    { "GL_OES_draw_texture",                        o(OES_draw_texture),                             ES1 | ES2 },
@@ -233,9 +233,9 @@ static const struct extension extension_table[] = {
    { "GL_OES_rgb8_rgba8",                          o(ARB_framebuffer_object),                       ES1 | ES2 },
    { "GL_OES_single_precision",                    o(dummy_true),                                   ES1       },
    { "GL_OES_standard_derivatives",                o(ARB_fragment_shader),                                ES2 },
-   { "GL_OES_stencil1",                            o(ARB_framebuffer_object),                       ES1 | ES2 },
-   { "GL_OES_stencil4",                            o(ARB_framebuffer_object),                       ES1 | ES2 },
-   { "GL_OES_stencil8",                            o(ARB_framebuffer_object),                       ES1       },
+   { "GL_OES_stencil1",                            o(dummy_false),                     DISABLE                },
+   { "GL_OES_stencil4",                            o(dummy_false),                     DISABLE                },
+   { "GL_OES_stencil8",                            o(ARB_framebuffer_object),                       ES1 | ES2 },
    { "GL_OES_stencil_wrap",                        o(EXT_stencil_wrap),                             ES1       },
    /* GL_OES_texture_3D is disabled due to missing GLSL support. */
    { "GL_OES_texture_3D",                          o(EXT_texture3D),                   DISABLE                },