forked from Green-Sky/tomato
add tox avatar handling + prio png for paste + other fixes and updates
This commit is contained in:
@@ -151,8 +151,10 @@ struct TextureCache {
|
||||
|
||||
void invalidate(const std::vector<KeyType>& to_purge) {
|
||||
for (const auto& key : to_purge) {
|
||||
for (const auto& tex_id : _cache.at(key).textures) {
|
||||
_tu.destroy(tex_id);
|
||||
if (_cache.count(key)) {
|
||||
for (const auto& tex_id : _cache.at(key).textures) {
|
||||
_tu.destroy(tex_id);
|
||||
}
|
||||
}
|
||||
_cache.erase(key);
|
||||
}
|
||||
|
Reference in New Issue
Block a user