Skip to content

Commit e528fcd

Browse files
committed
WIP
1 parent 074f745 commit e528fcd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extensions/pl_graphics_vulkan.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3812,6 +3812,11 @@ pl_present(plCommandBuffer* ptCmdBuffer, const plSubmitInfo* ptSubmitInfo, plSwa
38123812
tResult = vkQueuePresentKHR(ptDevice->tPresentQueue, &tPresentInfo);
38133813
if (tResult == VK_SUBOPTIMAL_KHR || tResult == VK_ERROR_OUT_OF_DATE_KHR)
38143814
{
3815+
const VkSemaphoreCreateInfo tSemaphoreInfo = {
3816+
.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO
3817+
};
3818+
vkDestroySemaphore(ptDevice->tLogicalDevice, ptSwaps[0]->sbtRenderFinish[ptSwaps[0]->uCurrentImageIndex], gptGraphics->ptAllocationCallbacks);
3819+
PL_VULKAN(vkCreateSemaphore(ptDevice->tLogicalDevice, &tSemaphoreInfo, gptGraphics->ptAllocationCallbacks, &ptSwaps[0]->sbtRenderFinish[ptSwaps[0]->uCurrentImageIndex]));
38153820
pl_sb_push(ptCmdBuffer->ptPool->sbtPendingCommandBuffers, ptCmdBuffer->tCmdBuffer);
38163821
pl_end_cpu_sample(gptProfile, 0);
38173822
return false;

0 commit comments

Comments
 (0)