我发现在调用
cocos2d::TrianglesCommand* SkeletonBatch::addCommand(cocos2d::Renderer* renderer, float globalOrder, cocos2d::Texture2D* texture, backend:😛rogramState* programState, cocos2d::BlendFunc blendType, const cocos2d::TrianglesCommand::Triangles& triangles, const cocos2d::Mat4& mv, uint32_t flags)
的时候会根据region的数量对cocos2d::Texture2D的成员变量backend::Texture2DBackend* texture->retain(),只有SkeletonBatch::getInstance()->destroyInstance()时才会调用texture->release(),有什么办法能让我把不需要的缓存删掉吗?