Procházet zdrojové kódy

texture_cache: fix max_element comparison function

Liam před 2 roky
rodič
revize
6b7dc587cf
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/video_core/texture_cache/texture_cache.h

+ 1 - 1
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);
     }