summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-03-25 07:40:17 +0100
committerGitHub <noreply@github.com>2023-03-25 07:40:17 +0100
commit09da9da6fb4428e8f305e967c9102dcf4030c5e9 (patch)
tree219b349e23b2c056bc0e5d80844147c72590ada9 /src/video_core
parentMerge pull request #9988 from rschlaikjer/rs-gpu-page-table-copy-elision (diff)
parentvulkan: fix scheduler chunk reserve (diff)
downloadyuzu-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 '')
-rw-r--r--src/video_core/renderer_vulkan/vk_scheduler.cpp2
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();
}
}