make TextureCache work with DependancyManager