Merge pull request #605 from asuessenbach/libvulkan

Change library name to load on linux to "libvulkan.so.1".
This commit is contained in:
Andreas Süßenbach 2020-05-11 12:21:25 +02:00 committed by GitHub
commit 542d9c3f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1414,7 +1414,7 @@ void VulkanHppGenerator::appendDispatchLoaderDynamic( std::string & str )
#endif #endif
{ {
#if defined(__linux__) #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__) #elif defined(__APPLE__)
m_library = dlopen( "libvulkan.dylib", RTLD_NOW | RTLD_LOCAL ); m_library = dlopen( "libvulkan.dylib", RTLD_NOW | RTLD_LOCAL );
#elif defined(_WIN32) #elif defined(_WIN32)

View File

@ -96714,7 +96714,7 @@ namespace VULKAN_HPP_NAMESPACE
# endif # endif
{ {
# if defined( __linux__ ) # 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__ ) # elif defined( __APPLE__ )
m_library = dlopen( "libvulkan.dylib", RTLD_NOW | RTLD_LOCAL ); m_library = dlopen( "libvulkan.dylib", RTLD_NOW | RTLD_LOCAL );
# elif defined( _WIN32 ) # elif defined( _WIN32 )