diff options
author | bunnei <bunneidev@gmail.com> | 2023-03-25 07:40:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 07:40:17 +0100 |
commit | 09da9da6fb4428e8f305e967c9102dcf4030c5e9 (patch) | |
tree | 219b349e23b2c056bc0e5d80844147c72590ada9 /src | |
parent | Merge pull request #9988 from rschlaikjer/rs-gpu-page-table-copy-elision (diff) | |
parent | vulkan: fix scheduler chunk reserve (diff) | |
download | yuzu-09da9da6fb4428e8f305e967c9102dcf4030c5e9.tar yuzu-09da9da6fb4428e8f305e967c9102dcf4030c5e9.tar.gz yuzu-09da9da6fb4428e8f305e967c9102dcf4030c5e9.tar.bz2 yuzu-09da9da6fb4428e8f305e967c9102dcf4030c5e9.tar.lz yuzu-09da9da6fb4428e8f305e967c9102dcf4030c5e9.tar.xz yuzu-09da9da6fb4428e8f305e967c9102dcf4030c5e9.tar.zst yuzu-09da9da6fb4428e8f305e967c9102dcf4030c5e9.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_scheduler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_scheduler.cpp b/src/video_core/renderer_vulkan/vk_scheduler.cpp index 55e699552..b264e6ada 100644 --- a/src/video_core/renderer_vulkan/vk_scheduler.cpp +++ b/src/video_core/renderer_vulkan/vk_scheduler.cpp @@ -328,7 +328,7 @@ void Scheduler::AcquireNewChunk() { chunk = std::make_unique<CommandChunk>(); } else { // Otherwise, we can just take from the reserve. - chunk = std::make_unique<CommandChunk>(); + chunk = std::move(chunk_reserve.back()); chunk_reserve.pop_back(); } } |