1
0
Fork 0
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:
Håvard Mathisen 2016-03-10 11:59:42 +01:00
parent 0ceddc29ff
commit 4ea4fa3e73
2 changed files with 1 additions and 17 deletions

View file

@ -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,