winex11: Print error message when libvulkan cannot be loaded.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-03-29 14:53:48 +02:00 committed by Alexandre Julliard
parent c8861df6d1
commit 1fab177c07
1 changed files with 5 additions and 1 deletions

View File

@ -134,7 +134,11 @@ static BOOL wine_vk_init(void)
if (init_done) return (vulkan_handle != NULL); if (init_done) return (vulkan_handle != NULL);
init_done = TRUE; init_done = TRUE;
if (!(vulkan_handle = wine_dlopen(SONAME_LIBVULKAN, RTLD_NOW, NULL, 0))) return FALSE; if (!(vulkan_handle = wine_dlopen(SONAME_LIBVULKAN, RTLD_NOW, NULL, 0)))
{
ERR("Failed to load %s\n", SONAME_LIBVULKAN);
return FALSE;
}
#define LOAD_FUNCPTR(f) if ((p##f = wine_dlsym(vulkan_handle, #f, NULL, 0)) == NULL) return FALSE; #define LOAD_FUNCPTR(f) if ((p##f = wine_dlsym(vulkan_handle, #f, NULL, 0)) == NULL) return FALSE;
LOAD_FUNCPTR(vkAcquireNextImageKHR) LOAD_FUNCPTR(vkAcquireNextImageKHR)