mirror of https://github.com/snes9xgit/snes9x.git
vulkan: Keep dynamic loader around.
This commit is contained in:
parent
08bf7a8696
commit
edbffb9a53
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue