From 9e47f778e5bebe96e2c6411c6697e6877d25f209 Mon Sep 17 00:00:00 2001 From: ravi688 Date: Mon, 12 Feb 2024 14:30:09 +0530 Subject: [PATCH] VK_TIMEOUT is not an error in pvkResetFences --- include/PlayVk/PlayVk.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/PlayVk/PlayVk.h b/include/PlayVk/PlayVk.h index 56d5ef4..67632c3 100644 --- a/include/PlayVk/PlayVk.h +++ b/include/PlayVk/PlayVk.h @@ -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