mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 10:35:03 +00:00
buffer_cache: Use copy instead of move
This commit is contained in:
parent
6534008e70
commit
35c6e57469
@ -240,7 +240,7 @@ bool BufferCache::CommitPendingDownloads() {
|
|||||||
Buffer& buffer = slot_buffers[buffer_id];
|
Buffer& buffer = slot_buffers[buffer_id];
|
||||||
cmdbuf.copyBuffer(buffer.Handle(), download_buffer.Handle(), buffer_copies);
|
cmdbuf.copyBuffer(buffer.Handle(), download_buffer.Handle(), buffer_copies);
|
||||||
}
|
}
|
||||||
scheduler.DeferOperation([this, download, offset, copies = std::move(copies)]() {
|
scheduler.DeferOperation([this, download, offset, copies]() {
|
||||||
auto* memory = Core::Memory::Instance();
|
auto* memory = Core::Memory::Instance();
|
||||||
for (auto it = copies.begin(); it != copies.end(); ++it) {
|
for (auto it = copies.begin(); it != copies.end(); ++it) {
|
||||||
auto& buffer_copies = it.value();
|
auto& buffer_copies = it.value();
|
||||||
|
Loading…
Reference in New Issue
Block a user