aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_vulkan_demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pugl_vulkan_demo.c')
-rw-r--r--examples/pugl_vulkan_demo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/pugl_vulkan_demo.c b/examples/pugl_vulkan_demo.c
index a65731b..3f684fe 100644
--- a/examples/pugl_vulkan_demo.c
+++ b/examples/pugl_vulkan_demo.c
@@ -1100,8 +1100,11 @@ main(int argc, char** argv)
// Create Vulkan surface for Window
PuglVulkanLoader* loader = puglNewVulkanLoader(app.world);
- if (puglCreateSurface(
- loader, app.view, vk->instance, ALLOC_VK, &vk->surface)) {
+ if (puglCreateSurface(puglGetInstanceProcAddrFunc(loader),
+ app.view,
+ vk->instance,
+ ALLOC_VK,
+ &vk->surface)) {
return logError("Failed to create surface\n");
}