vulkan: Actually submit one-time command buffer.

This commit is contained in:
BearOso 2023-04-17 15:42:28 -05:00
parent 3ab8f006cb
commit bfdbc28357
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ void Context::end_cmd_buffer()
one_time_use_cmd.end(); one_time_use_cmd.end();
vk::SubmitInfo submit_info{}; vk::SubmitInfo submit_info{};
submit_info.setCommandBuffers(one_time_use_cmd); submit_info.setCommandBuffers(one_time_use_cmd);
queue.submit(vk::SubmitInfo()); queue.submit(submit_info);
queue.waitIdle(); queue.waitIdle();
device.freeCommandBuffers(command_pool.get(), one_time_use_cmd); device.freeCommandBuffers(command_pool.get(), one_time_use_cmd);
one_time_use_cmd = nullptr; one_time_use_cmd = nullptr;