diff --git a/physical_device.cpp b/physical_device.cpp index 9a1f0ad..ed055a9 100644 --- a/physical_device.cpp +++ b/physical_device.cpp @@ -63,7 +63,7 @@ VkSurfaceCapabilitiesKHR physical_device::surface_capabilities (surface &_surface) const { return error::try_query ( - vkGetPhysicalDeviceSurfaceCapabilitiesKHR, native (), _surface.native () + vkGetPhysicalDeviceSurfaceCapabilitiesKHR, native (), _surface ); } diff --git a/tools/hello.cpp b/tools/hello.cpp index f5fcbb2..d490d3e 100644 --- a/tools/hello.cpp +++ b/tools/hello.cpp @@ -249,7 +249,7 @@ main (void) auto swapchain = cruft::vk::make_owned (ldevice, &swap_create_info, nullptr); std::vector swap_images = cruft::vk::error::try_values ( - vkGetSwapchainImagesKHR, ldevice.native (), swapchain->native () + vkGetSwapchainImagesKHR, ldevice, swapchain ); using image_view_ptr = cruft::vk::owned_ptr;