buffer_cache: Use copy instead of move

This commit is contained in:
IndecisiveTurtle 2025-06-23 00:43:51 +03:00
parent 6534008e70
commit 35c6e57469

View File

@ -240,7 +240,7 @@ bool BufferCache::CommitPendingDownloads() {
Buffer& buffer = slot_buffers[buffer_id];
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();
for (auto it = copies.begin(); it != copies.end(); ++it) {
auto& buffer_copies = it.value();