From 6b7dc587cfa8745b6c8c454ec7eda03f71fea691 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 3 Dec 2023 18:40:19 -0500 Subject: [PATCH] texture_cache: fix max_element comparison function --- src/video_core/texture_cache/texture_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index c36ecece27..0d5a1709fb 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -755,7 +755,7 @@ typename P::ImageView* TextureCache

::TryFindFramebufferImageView( if (valid_image_ids.size() > 0) [[unlikely]] { auto most_recent = std::ranges::max_element(valid_image_ids, [&](auto a, auto b) { - return slot_images[a].modification_tick > slot_images[b].modification_tick; + return slot_images[a].modification_tick < slot_images[b].modification_tick; }); return GetImageViewForFramebuffer(*most_recent); }