OSDN Git Service

i915: enable GL_APPLE_texture_2D_limited_npot
authorChia-I Wu <olv@lunarg.com>
Wed, 7 Sep 2011 07:18:17 +0000 (15:18 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 23 Jul 2013 15:30:06 +0000 (23:30 +0800)
Enable GL_ARB_texture_non_power_of_two for GLESv1 to advertise
GL_APPLE_texture_2D_limited_npo.  The former is actually a superset of
the latter, but we really want to enable NPOT support in some way.

src/mesa/main/extensions.c

index 9059224..550d0e9 100644 (file)
@@ -291,6 +291,7 @@ static const struct extension extension_table[] = {
    { "GL_AMD_vertex_shader_layer",                 o(AMD_vertex_shader_layer),                 GL,             2012 },
    { "GL_APPLE_object_purgeable",                  o(APPLE_object_purgeable),                  GL,             2006 },
    { "GL_APPLE_packed_pixels",                     o(dummy_true),                              GLL,            2002 },
+   { "GL_APPLE_texture_2D_limited_npot",           o(ARB_texture_non_power_of_two),                 ES1,       2011 },
    { "GL_APPLE_texture_max_level",                 o(dummy_true),                                   ES1 | ES2, 2009 },
    { "GL_APPLE_vertex_array_object",               o(dummy_true),                              GLL,            2002 },
    { "GL_ATI_blend_equation_separate",             o(EXT_blend_equation_separate),             GL,             2003 },