add tox avatar handling + prio png for paste + other fixes and updates

This commit is contained in:
2023-10-14 15:59:32 +02:00
parent e7095a1849
commit c79068c561
12 changed files with 279 additions and 8 deletions

View File

@@ -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);
}