Work around broken GL_TEXTURE_BINDING_EXTERNAL_OES query
modified patches