vk_scheduler: Fix pending op check

This commit is contained in:
TheTurtle 2024-07-21 17:41:46 +03:00 committed by GitHub
parent 403a5a57b1
commit 36d528743a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

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