mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
1 parent
64461329e7
commit
1d16d6be6a
1 file changed
+8
@@ -935,6 +935,14 @@ void GameInfoCache::Clear() {
|
||||
CancelAll();
|
||||
|
||||
std::lock_guard<std::mutex> lock(mapLock_);
|
||||
// NOTE: Some shared_pointers might have other owners. We still need to wipe their textures here.
|
||||
for (auto &[key, value] : info_) {
|
||||
std::lock_guard<std::mutex> lock(value->lock);
|
||||
value->pic0.Clear();
|
||||
value->pic1.Clear();
|
||||
value->icon.Clear();
|
||||
value->hasFlags &= ~(GameInfoFlags::PIC0 | GameInfoFlags::PIC1 | GameInfoFlags::ICON);
|
||||
}
|
||||
info_.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user