mirror of
https://github.com/libretro/snes9x.git
synced 2024-11-27 10:30:31 +00:00
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
Block a user