mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-06 04:58:47 +02:00
Vulkan Example: Fix synchronization.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user