From fed16beef380c1478f59fd0ebb47b04da958d46f Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Wed, 28 Aug 2024 13:53:13 -0600 Subject: [PATCH] Report an error on initialization failure --- blade-graphics/src/vulkan/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blade-graphics/src/vulkan/init.rs b/blade-graphics/src/vulkan/init.rs index 618d93d0..3b4ac739 100644 --- a/blade-graphics/src/vulkan/init.rs +++ b/blade-graphics/src/vulkan/init.rs @@ -524,7 +524,7 @@ impl super::Context { instance .core .create_device(physical_device, &device_create_info, None) - .unwrap() + .map_err(|e| NotSupportedError::VulkanError(e))? }; let device = super::Device {