diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-25 07:43:01 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-26 08:29:34 +0200 |
commit | 9476309d53b194d6ded5469dda8c3f0808e712ce (patch) | |
tree | 6f948913c898363b5a1af75c7ec6934c94419f4a | |
parent | video_core: Enforce C4244 (diff) | |
download | yuzu-9476309d53b194d6ded5469dda8c3f0808e712ce.tar yuzu-9476309d53b194d6ded5469dda8c3f0808e712ce.tar.gz yuzu-9476309d53b194d6ded5469dda8c3f0808e712ce.tar.bz2 yuzu-9476309d53b194d6ded5469dda8c3f0808e712ce.tar.lz yuzu-9476309d53b194d6ded5469dda8c3f0808e712ce.tar.xz yuzu-9476309d53b194d6ded5469dda8c3f0808e712ce.tar.zst yuzu-9476309d53b194d6ded5469dda8c3f0808e712ce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index eefd04c81..cad7f902d 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -416,8 +416,9 @@ void BufferCache<P>::CachedWriteMemory(VAddr cpu_addr, u64 size) { template <class P> void BufferCache<P>::DownloadMemory(VAddr cpu_addr, u64 size) { - ForEachBufferInRange(cpu_addr, size, - [&](BufferId, Buffer& buffer) { DownloadBufferMemory(buffer); }); + ForEachBufferInRange(cpu_addr, size, [&](BufferId, Buffer& buffer) { + DownloadBufferMemory(buffer, cpu_addr, size); + }); } template <class P> |