diff options
Diffstat (limited to 'examples/pugl_vulkan_cxx_demo.cpp')
-rw-r--r-- | examples/pugl_vulkan_cxx_demo.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/pugl_vulkan_cxx_demo.cpp b/examples/pugl_vulkan_cxx_demo.cpp index 7a4e5cb..6da5e5a 100644 --- a/examples/pugl_vulkan_cxx_demo.cpp +++ b/examples/pugl_vulkan_cxx_demo.cpp @@ -417,8 +417,11 @@ GraphicsDevice::init(const pugl::VulkanLoader& loader, // Create a Vulkan surface for the window using the Pugl API VkSurfaceKHR surfaceHandle = {}; - if ((r = pugl::createSurface( - loader, view, context.instance, nullptr, &surfaceHandle))) { + if ((r = pugl::createSurface(loader.getInstanceProcAddrFunc(), + view, + context.instance, + nullptr, + &surfaceHandle))) { return r; } |