From d2a23f5086fa7f95da2fea246b7247730090148c Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Mon, 11 May 2020 12:00:39 +0200 Subject: [PATCH] Change library name to load on linux to "libvulkan.so.1". --- VulkanHppGenerator.cpp | 2 +- vulkan/vulkan.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index dcf77bd..e5fe5d7 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -1414,7 +1414,7 @@ void VulkanHppGenerator::appendDispatchLoaderDynamic( std::string & str ) #endif { #if defined(__linux__) - m_library = dlopen( "libvulkan.so", RTLD_NOW | RTLD_LOCAL ); + m_library = dlopen( "libvulkan.so.1", RTLD_NOW | RTLD_LOCAL ); #elif defined(__APPLE__) m_library = dlopen( "libvulkan.dylib", RTLD_NOW | RTLD_LOCAL ); #elif defined(_WIN32) diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index 952040a..7565100 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -96714,7 +96714,7 @@ namespace VULKAN_HPP_NAMESPACE # endif { # if defined( __linux__ ) - m_library = dlopen( "libvulkan.so", RTLD_NOW | RTLD_LOCAL ); + m_library = dlopen( "libvulkan.so.1", RTLD_NOW | RTLD_LOCAL ); # elif defined( __APPLE__ ) m_library = dlopen( "libvulkan.dylib", RTLD_NOW | RTLD_LOCAL ); # elif defined( _WIN32 )