refactor(renderer): do not call dlclose for vulkan
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
light7734 2025-10-08 13:16:25 +03:30
parent 36d2d81e8a
commit b6976c01c4
Signed by: light7734
GPG key ID: 8C30176798F1A6BA

View file

@ -231,7 +231,7 @@ void Instance::initialize_instance()
void Instance::load_library() 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"); ensure(library, "Failed to dlopen libvulkan.so");
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
@ -248,8 +248,8 @@ void Instance::unload_library()
return; return;
} }
dlclose(library); // dlclose(library);
library = nullptr; // library = nullptr;
} }
void Instance::load_global_functions() void Instance::load_global_functions()