aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac_vulkan.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac_vulkan.m')
-rw-r--r--src/mac_vulkan.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mac_vulkan.m b/src/mac_vulkan.m
index 39c7f29..2d01fd4 100644
--- a/src/mac_vulkan.m
+++ b/src/mac_vulkan.m
@@ -194,7 +194,7 @@ puglGetInstanceExtensions(uint32_t* const count)
}
VkResult
-puglCreateSurface(const PuglVulkanLoader* const loader,
+puglCreateSurface(PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr,
PuglView* const view,
VkInstance instance,
const VkAllocationCallbacks* const allocator,
@@ -203,8 +203,8 @@ puglCreateSurface(const PuglVulkanLoader* const loader,
PuglInternals* const impl = view->impl;
PFN_vkCreateMacOSSurfaceMVK vkCreateMacOSSurfaceMVK =
- (PFN_vkCreateMacOSSurfaceMVK)puglGetInstanceProcAddrFunc(
- loader)(instance, "vkCreateMacOSSurfaceMVK");
+ (PFN_vkCreateMacOSSurfaceMVK)
+ vkGetInstanceProcAddr(instance, "vkCreateMacOSSurfaceMVK");
const VkMacOSSurfaceCreateInfoMVK info = {
VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK,