OSDN Git Service

android: advertise GL_ARB_texture_non_power_of_two
authorChia-I Wu <olvaffe@gmail.com>
Wed, 16 Mar 2011 09:26:22 +0000 (17:26 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 6 Apr 2012 03:30:02 +0000 (11:30 +0800)
It maps to DisplayHardware::NPOT_EXTENSION in SurfaceFlinger.  Does not
seem to matter when EGL_ANDROID_image_native_buffer is available.

src/mesa/main/extensions.c

index c35bc67..41c411d 100644 (file)
@@ -130,7 +130,7 @@ static const struct extension extension_table[] = {
    { "GL_ARB_texture_float",                       o(ARB_texture_float),                       GL,             2004 },
    { "GL_ARB_texture_mirrored_repeat",             o(dummy_true),                              GL,             2001 },
    { "GL_ARB_texture_multisample",                 o(ARB_texture_multisample),                 GL,             2009 },
-   { "GL_ARB_texture_non_power_of_two",            o(ARB_texture_non_power_of_two),            GL,             2003 },
+   { "GL_ARB_texture_non_power_of_two",            o(ARB_texture_non_power_of_two),            GL | ES1,       2003 },
    { "GL_ARB_texture_rectangle",                   o(NV_texture_rectangle),                    GL,             2004 },
    { "GL_ARB_texture_rgb10_a2ui",                  o(ARB_texture_rgb10_a2ui),                  GL,             2009 },
    { "GL_ARB_texture_rg",                          o(ARB_texture_rg),                          GL,             2008 },