+ if(get_gl_api()!=OPENGL_ES2)
+ update_parameter(GENERATE_MIPMAP);
+}
+
+void Texture::auto_generate_mipmap()
+{
+ if(get_gl_api()==OPENGL_ES2)
+ {
+ // glGenerateMipmap is defined here
+ static Require _req(EXT_framebuffer_object);
+ glGenerateMipmap(target);
+ }