mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-12 00:14:20 +00:00
Vulkan Example: Fix synchronization.
This commit is contained in:
parent
0ceddc29ff
commit
4ea4fa3e73
2 changed files with 1 additions and 17 deletions
|
|
@ -311,14 +311,6 @@ static void frame_begin()
|
|||
if(err == VK_TIMEOUT) continue;
|
||||
check_vk_result(err);
|
||||
}
|
||||
{
|
||||
vkDestroySemaphore(g_Device, g_Semaphore[g_FrameIndex], g_Allocator);
|
||||
VkSemaphoreCreateInfo info = {};
|
||||
info.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO;
|
||||
err = vkCreateSemaphore(g_Device, &info, g_Allocator,
|
||||
&g_Semaphore[g_FrameIndex]);
|
||||
check_vk_result(err);
|
||||
}
|
||||
{
|
||||
err = vkAcquireNextImageKHR(
|
||||
g_Device, g_Swapchain,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue