(vulkan_common.c) Add log error when vkCreateInstance fails

This commit is contained in:
twinaphex 2016-03-02 03:13:31 +01:00
parent 0b9ea0943b
commit 7d0205deac

View File

@ -1088,7 +1088,10 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk,
cached_instance = NULL;
}
else if (VKFUNC(vkCreateInstance)(&info, NULL, &vk->context.instance) != VK_SUCCESS)
{
RARCH_ERR("Failed to create Vulkan instance.\n");
return false;
}
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance,
GetPhysicalDeviceFormatProperties);