If the texture is destroyed, it should be removed from TextureCache too
Merge pull request #738 from panrafal/fix/destroy-texture

If the texture is destroyed, it should be removed from TextureCache too