vulkan: Keep dynamic loader around.

This commit is contained in:
BearOso 2023-02-08 15:25:10 -06:00
parent 08bf7a8696
commit edbffb9a53
1 changed files with 2 additions and 2 deletions

View File

@ -10,9 +10,9 @@ namespace Vulkan
Context::Context()
{
vk::DynamicLoader dl;
vk::DynamicLoader *dl = new vk::DynamicLoader;
auto vkGetInstanceProcAddr =
dl.getProcAddress<PFN_vkGetInstanceProcAddr>("vkGetInstanceProcAddr");
dl->getProcAddress<PFN_vkGetInstanceProcAddr>("vkGetInstanceProcAddr");
VULKAN_HPP_DEFAULT_DISPATCHER.init(vkGetInstanceProcAddr);