diff options
| -rw-r--r-- | sokol_app.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_app.h b/sokol_app.h index db2e8dcb..baaf03ba 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -4965,7 +4965,7 @@ _SOKOL_PRIVATE void _sapp_vk_present(void) { _SAPP_STRUCT(VkPresentInfoKHR, present_info); present_info.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR; present_info.waitSemaphoreCount = 1; - present_info.pWaitSemaphores = &_sapp.vk.sync[_sapp.vk.cur_swapchain_image_index].render_finished_sem; + present_info.pWaitSemaphores = &_sapp.vk.sync[_sapp.vk.sync_slot].render_finished_sem; present_info.swapchainCount = 1; present_info.pSwapchains = &_sapp.vk.swapchain; present_info.pImageIndices = &_sapp.vk.cur_swapchain_image_index; @@ -14005,7 +14005,7 @@ SOKOL_API_IMPL sapp_swapchain sapp_get_swapchain(void) { } res.vulkan.depth_stencil_image = (const void*) _sapp.vk.depth.img; res.vulkan.depth_stencil_view = (const void*) _sapp.vk.depth.view; - res.vulkan.render_finished_semaphore = _sapp.vk.sync[img_idx].render_finished_sem; + res.vulkan.render_finished_semaphore = _sapp.vk.sync[_sapp.vk.sync_slot].render_finished_sem; res.vulkan.present_complete_semaphore = _sapp.vk.sync[_sapp.vk.sync_slot].present_complete_sem; #endif #if defined(_SAPP_ANY_GL) |