diff options
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index c36ecece2..0d5a1709f 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<P>::TryFindFramebufferImageView( | |||
| 755 | 755 | ||
| 756 | if (valid_image_ids.size() > 0) [[unlikely]] { | 756 | if (valid_image_ids.size() > 0) [[unlikely]] { |
| 757 | auto most_recent = std::ranges::max_element(valid_image_ids, [&](auto a, auto b) { | 757 | auto most_recent = std::ranges::max_element(valid_image_ids, [&](auto a, auto b) { |
| 758 | return slot_images[a].modification_tick > slot_images[b].modification_tick; | 758 | return slot_images[a].modification_tick < slot_images[b].modification_tick; |
| 759 | }); | 759 | }); |
| 760 | return GetImageViewForFramebuffer(*most_recent); | 760 | return GetImageViewForFramebuffer(*most_recent); |
| 761 | } | 761 | } |