diff options
| author | 2023-03-24 09:09:01 -0400 | |
|---|---|---|
| committer | 2023-03-24 09:09:01 -0400 | |
| commit | 5a2dff87bfd111391b1b00dc799f5483edec96ba (patch) | |
| tree | 12d6205bd56119377fa49bdf7da4162eb32b5701 | |
| parent | Merge pull request #9975 from liamwhite/more-waiting (diff) | |
| download | yuzu-5a2dff87bfd111391b1b00dc799f5483edec96ba.tar.gz yuzu-5a2dff87bfd111391b1b00dc799f5483edec96ba.tar.xz yuzu-5a2dff87bfd111391b1b00dc799f5483edec96ba.zip | |
vulkan: fix scheduler chunk reserve
| -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() { | |||
| 328 | chunk = std::make_unique<CommandChunk>(); | 328 | chunk = std::make_unique<CommandChunk>(); |
| 329 | } else { | 329 | } else { |
| 330 | // Otherwise, we can just take from the reserve. | 330 | // Otherwise, we can just take from the reserve. |
| 331 | chunk = std::make_unique<CommandChunk>(); | 331 | chunk = std::move(chunk_reserve.back()); |
| 332 | chunk_reserve.pop_back(); | 332 | chunk_reserve.pop_back(); |
| 333 | } | 333 | } |
| 334 | } | 334 | } |