From a541d44d03dda95290b70b21f709856ac6973f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Sun, 20 Mar 2022 15:30:19 +0100 Subject: [PATCH] MoltenVK fix --- include/Nazara/VulkanRenderer/Wrapper/Device.inl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/Nazara/VulkanRenderer/Wrapper/Device.inl b/include/Nazara/VulkanRenderer/Wrapper/Device.inl index 6b91c65c9..0eeb44da7 100644 --- a/include/Nazara/VulkanRenderer/Wrapper/Device.inl +++ b/include/Nazara/VulkanRenderer/Wrapper/Device.inl @@ -4,6 +4,7 @@ #include #include +#include #include #include #include @@ -59,7 +60,12 @@ namespace Nz::Vk inline PFN_vkVoidFunction Device::GetProcAddr(const char* name, bool allowInstanceFallback) { - PFN_vkVoidFunction func = m_instance.GetDeviceProcAddr(m_device, name); + PFN_vkVoidFunction func; + { + ErrorFlags errFlags(ErrorMode::ThrowExceptionDisabled); + func = m_instance.GetDeviceProcAddr(m_device, name); + } + if (!func) { if (allowInstanceFallback)