From fa5ae90c34e740eaf3a4e29d5e2841240f62244d Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Tue, 7 Apr 2026 15:44:27 +1000 Subject: Fix validation warning when calling GetPhysicalDeviceQueueFamilyProperties2KHR, late destructors for DeviceContext and InstanceContext --- src/physical_device_context.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/physical_device_context.cc') diff --git a/src/physical_device_context.cc b/src/physical_device_context.cc index 86bf9ab..7a57759 100644 --- a/src/physical_device_context.cc +++ b/src/physical_device_context.cc @@ -24,13 +24,13 @@ PhysicalDeviceContext::PhysicalDeviceContext( this->queue_properties = [&]() { auto count = std::uint32_t{}; - vtable.GetPhysicalDeviceQueueFamilyProperties2(physical_device, &count, + vtable.GetPhysicalDeviceQueueFamilyProperties2KHR(physical_device, &count, nullptr); auto result = std::vector( count, VkQueueFamilyProperties2{ .sType = VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2}); - vtable.GetPhysicalDeviceQueueFamilyProperties2(physical_device, &count, + vtable.GetPhysicalDeviceQueueFamilyProperties2KHR(physical_device, &count, std::data(result)); return std::make_unique>( -- cgit v1.2.3