mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
texture_cache: fix max_element comparison function
This commit is contained in:
parent
f05cb69d4f
commit
6b7dc587cf
1 changed files with 1 additions and 1 deletions
|
@ -755,7 +755,7 @@ typename P::ImageView* TextureCache<P>::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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue