diff options
| author | MaranBr <maranbr@outlook.com> | 2026-05-24 01:03:20 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-05-24 01:03:20 +0200 |
| commit | 573e06131dd969114c61f6db48254ad30aebd796 (patch) | |
| tree | 2517292cc0aa6e59328aea903295447142223eae /src/common/lru_cache.h | |
| parent | 06c8926a2ec5d40a31d2c9c4692afee80fedddf3 (diff) | |
[texture_cache] Fix a rare visual corruption under specific conditions (#3986)
This fixes a rare visual corruption that can occur under specific conditions depending on the hardware used.
This bug is known to affect the loading screens in The Legend of Zelda: Tears of the Kingdom.
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3986
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Diffstat (limited to 'src/common/lru_cache.h')
| -rw-r--r-- | src/common/lru_cache.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/lru_cache.h b/src/common/lru_cache.h index 36cea5d27e..952ba0eb8b 100644 --- a/src/common/lru_cache.h +++ b/src/common/lru_cache.h @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -60,7 +63,7 @@ public: template <typename Func> void ForEachItemBelow(TickType tick, Func&& func) { static constexpr bool RETURNS_BOOL = - std::is_same_v<std::invoke_result<Func, ObjectType>, bool>; + std::is_same_v<std::invoke_result_t<Func, ObjectType>, bool>; Item* iterator = first_item; while (iterator) { if (static_cast<s64>(tick) - static_cast<s64>(iterator->tick) < 0) { |
