summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-11-17 00:59:46 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-17 00:59:46 +0100
commit978f598ff64d3bd0299d06c47e6cbd63a496122c (patch)
tree068f59369198281c5388b1164ed6cb5522ba5a8e /src/video_core/texture_cache
parentTextureCache: Add automatic anisotropic filtering and refactor code. (diff)
downloadyuzu-978f598ff64d3bd0299d06c47e6cbd63a496122c.tar
yuzu-978f598ff64d3bd0299d06c47e6cbd63a496122c.tar.gz
yuzu-978f598ff64d3bd0299d06c47e6cbd63a496122c.tar.bz2
yuzu-978f598ff64d3bd0299d06c47e6cbd63a496122c.tar.lz
yuzu-978f598ff64d3bd0299d06c47e6cbd63a496122c.tar.xz
yuzu-978f598ff64d3bd0299d06c47e6cbd63a496122c.tar.zst
yuzu-978f598ff64d3bd0299d06c47e6cbd63a496122c.zip
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/texture_cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index aec130a32..4d2874bf2 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -1620,6 +1620,9 @@ void TextureCache<P>::RemoveFramebuffers(std::span<const ImageViewId> removed_vi
auto it = framebuffers.begin();
while (it != framebuffers.end()) {
if (it->first.Contains(removed_views)) {
+ auto framebuffer_id = it->second;
+ ASSERT(framebuffer_id);
+ sentenced_framebuffers.Push(std::move(slot_framebuffers[framebuffer_id]));
it = framebuffers.erase(it);
} else {
++it;