···392392 }
393393 xrt_compositor_semaphore_reference(&c->sync.xcsem, NULL);
394394395395- /*
396396- * Make sure that any of the command buffers from the command pool are
397397- * not in use (pending in Vulkan terms), to please the validation layer.
398398- */
399399- os_mutex_lock(&vk->queue_mutex);
400400- vk->vkQueueWaitIdle(vk->main_queue.queue);
401401- os_mutex_unlock(&vk->queue_mutex);
402402-403395 // Now safe to free the pool.
404396 vk_cmd_pool_destroy(vk, &c->pool);
405397