summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-25 07:43:01 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-06-26 08:29:34 +0200
commit9476309d53b194d6ded5469dda8c3f0808e712ce (patch)
tree6f948913c898363b5a1af75c7ec6934c94419f4a /src/video_core
parentvideo_core: Enforce C4244 (diff)
downloadyuzu-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 'src/video_core')
-rw-r--r--src/video_core/buffer_cache/buffer_cache.h5
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>