summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-04 00:40:19 +0100
committerLiam <byteslice@airmail.cc>2023-12-04 00:40:19 +0100
commit6b7dc587cfa8745b6c8c454ec7eda03f71fea691 (patch)
tree0ee0dd64cdf6f18a0584487bda892f763c6fb78b
parentrenderer_opengl: remove srgb conversion logic (diff)
downloadyuzu-6b7dc587cfa8745b6c8c454ec7eda03f71fea691.tar
yuzu-6b7dc587cfa8745b6c8c454ec7eda03f71fea691.tar.gz
yuzu-6b7dc587cfa8745b6c8c454ec7eda03f71fea691.tar.bz2
yuzu-6b7dc587cfa8745b6c8c454ec7eda03f71fea691.tar.lz
yuzu-6b7dc587cfa8745b6c8c454ec7eda03f71fea691.tar.xz
yuzu-6b7dc587cfa8745b6c8c454ec7eda03f71fea691.tar.zst
yuzu-6b7dc587cfa8745b6c8c454ec7eda03f71fea691.zip
-rw-r--r--src/video_core/texture_cache/texture_cache.h2
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(
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);
}