From b4d6aa0dbd3f75df6008ea1f79688c3673a78580 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 21 Aug 2017 22:36:47 +0200 Subject: [PATCH] libs/vkd3d: Explicitly handle VK_ERROR_DEVICE_LOST in hresult_from_vk_result(). --- libs/vkd3d/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d/utils.c b/libs/vkd3d/utils.c index f36b3042..f017a049 100644 --- a/libs/vkd3d/utils.c +++ b/libs/vkd3d/utils.c @@ -336,9 +336,9 @@ HRESULT hresult_from_vk_result(VkResult vr) case VK_ERROR_OUT_OF_HOST_MEMORY: case VK_ERROR_OUT_OF_DEVICE_MEMORY: return E_OUTOFMEMORY; - default: FIXME("Unhandled VkResult %d.\n", vr); + case VK_ERROR_DEVICE_LOST: return E_FAIL; } }