refactor(renderer): do not call dlclose for vulkan
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
36d2d81e8a
commit
b6976c01c4
1 changed files with 3 additions and 3 deletions
|
@ -231,7 +231,7 @@ void Instance::initialize_instance()
|
|||
|
||||
void Instance::load_library()
|
||||
{
|
||||
library = dlopen("libvulkan.so", RTLD_NOW | RTLD_LOCAL);
|
||||
library = dlopen("libvulkan.so", RTLD_NOW | RTLD_LOCAL | RTLD_NODELETE);
|
||||
ensure(library, "Failed to dlopen libvulkan.so");
|
||||
|
||||
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
|
||||
|
@ -248,8 +248,8 @@ void Instance::unload_library()
|
|||
return;
|
||||
}
|
||||
|
||||
dlclose(library);
|
||||
library = nullptr;
|
||||
// dlclose(library);
|
||||
// library = nullptr;
|
||||
}
|
||||
|
||||
void Instance::load_global_functions()
|
||||
|
|
Loading…
Add table
Reference in a new issue