Skip to content

Commit

Permalink
VK_TIMEOUT is not an error in pvkResetFences
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi688 committed Feb 12, 2024
1 parent 0bdfdef commit 9e47f77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/PlayVk/PlayVk.h
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,9 @@ PVK_LINKAGE void pvkResetFences(VkDevice device, uint32_t fenceCount, VkFence* f
#ifdef PVK_IMPLEMENTATION
PVK_LINKAGE void pvkResetFences(VkDevice device, uint32_t fenceCount, VkFence* fences)
{
PVK_CHECK(vkWaitForFences(device, fenceCount, fences, VK_TRUE, 0));
VkResult result = vkWaitForFences(device, fenceCount, fences, VK_TRUE, 0);
if(result != VK_TIMEOUT)
PVK_CHECK(result);
PVK_CHECK(vkResetFences(device, fenceCount, fences));
}
#endif
Expand Down

0 comments on commit 9e47f77

Please sign in to comment.