Przeglądaj źródła

vulkan: fix scheduler chunk reserve

Liam 3 lat temu
rodzic
commit
5a2dff87bf

+ 1 - 1
src/video_core/renderer_vulkan/vk_scheduler.cpp

@@ -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();
     }
     }
 }
 }