diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-10-21 08:34:07 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-10-22 21:02:04 +0200 |
commit | c7e079a5d441840e1ae2aabd5be0f45ffb737f1c (patch) | |
tree | d8d4f64d081a910aa8364fdf65ac32ab10bc4ab6 /src/video_core/texture_cache/texture_cache.h | |
parent | general: Resolve -Wclass-memaccess (diff) | |
download | yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar.gz yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar.bz2 yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar.lz yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar.xz yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar.zst yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 0e0fd410f..8ef75fe73 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -442,7 +442,7 @@ void TextureCache<P>::WriteMemory(VAddr cpu_addr, size_t size) { template <class P> void TextureCache<P>::DownloadMemory(VAddr cpu_addr, size_t size) { std::vector<ImageId> images; - ForEachImageInRegion(cpu_addr, size, [this, &images](ImageId image_id, ImageBase& image) { + ForEachImageInRegion(cpu_addr, size, [&images](ImageId image_id, ImageBase& image) { if (!image.IsSafeDownload()) { return; } @@ -1502,9 +1502,9 @@ void TextureCache<P>::UnregisterImage(ImageId image_id) { image.flags &= ~ImageFlagBits::BadOverlap; lru_cache.Free(image.lru_index); const auto& clear_page_table = - [this, image_id](u64 page, - std::unordered_map<u64, std::vector<ImageId>, Common::IdentityHash<u64>>& - selected_page_table) { + [image_id](u64 page, + std::unordered_map<u64, std::vector<ImageId>, Common::IdentityHash<u64>>& + selected_page_table) { const auto page_it = selected_page_table.find(page); if (page_it == selected_page_table.end()) { ASSERT_MSG(false, "Unregistering unregistered page=0x{:x}", page << YUZU_PAGEBITS); |