Merge pull request #9985 from liamwhite/funny-meme

vulkan: fix scheduler chunk reserve
This commit is contained in:
bunnei 2023-03-24 23:40:17 -07:00 committed by GitHub
commit 09da9da6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,7 +328,7 @@ void Scheduler::AcquireNewChunk() {
chunk = std::make_unique<CommandChunk>(); chunk = std::make_unique<CommandChunk>();
} else { } else {
// Otherwise, we can just take from the reserve. // Otherwise, we can just take from the reserve.
chunk = std::make_unique<CommandChunk>(); chunk = std::move(chunk_reserve.back());
chunk_reserve.pop_back(); chunk_reserve.pop_back();
} }
} }