FullscreenUI: Avoid unnecessary mutex lock

This commit is contained in:
Stenzek
2026-07-06 16:16:47 +10:00
parent eeda898c23
commit 43294ac044
+3 -1
View File
@@ -1125,9 +1125,11 @@ GPUTexture* FullscreenUI::GetGameListCover(const GameList::Entry* entry, bool fa
// try achievements image before memcard icon
if (fallback_to_achievements_icon && cover_it->second.empty() && Achievements::IsActive())
{
const auto lock = Achievements::GetLock();
if (VideoThread::GetGamePath() == entry->path)
{
const auto lock = Achievements::GetLock();
cover_it->second = Achievements::GetCurrentGameBadgeURL();
}
}
}