vulkan: Keep dynamic loader around.

This commit is contained in:
BearOso 2023-02-08 15:25:10 -06:00
parent 08bf7a8696
commit edbffb9a53

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);