vk_scheduler: Fix pending op check
This commit is contained in:
parent
403a5a57b1
commit
36d528743a
|
@ -102,8 +102,8 @@ void Scheduler::SubmitExecution(vk::Semaphore signal_semaphore, vk::Semaphore wa
|
|||
AllocateWorkerCommandBuffers();
|
||||
|
||||
// Apply pending operations
|
||||
while (IsFree(pending_ops.back().gpu_tick)) {
|
||||
pending_ops.back().callback();
|
||||
while (!pending_ops.empty() && IsFree(pending_ops.front().gpu_tick)) {
|
||||
pending_ops.front().callback();
|
||||
pending_ops.pop();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue