ref count textures