| 896 | } |
| 897 | |
| 898 | bool TextureCache::UnloadTexture(const std::shared_ptr<LoadedTexture>& texture) |
| 899 | { |
| 900 | const auto& it = m_LoadedTextures.find(texture->path); |
| 901 | |
| 902 | if (it == m_LoadedTextures.end()) |
| 903 | return false; |
| 904 | |
| 905 | m_LoadedTextures.erase(it); |
| 906 | |
| 907 | return true; |
| 908 | } |
| 909 | |
| 910 | } |