vkswapper: get the function pointers from the correct object
authorMatthew Waters <matthew@centricular.com>
Thu, 31 Dec 2015 04:58:37 +0000 (15:58 +1100)
committerMatthew Waters <matthew@centricular.com>
Tue, 16 Feb 2016 14:13:43 +0000 (01:13 +1100)
GetPhysicalDevice* functions are instance functions rather than device
functions.

ext/vulkan/vkswapper.c

index 9a16f61..e4013aa 100644 (file)
@@ -68,11 +68,11 @@ _get_function_table (GstVulkanSwapper * swapper)
 
   GET_PROC_ADDRESS_REQUIRED (swapper, instance,
       GetPhysicalDeviceSurfaceSupportKHR);
-  GET_PROC_ADDRESS_REQUIRED (swapper, device,
+  GET_PROC_ADDRESS_REQUIRED (swapper, instance,
       GetPhysicalDeviceSurfaceCapabilitiesKHR);
-  GET_PROC_ADDRESS_REQUIRED (swapper, device,
+  GET_PROC_ADDRESS_REQUIRED (swapper, instance,
       GetPhysicalDeviceSurfaceFormatsKHR);
-  GET_PROC_ADDRESS_REQUIRED (swapper, device,
+  GET_PROC_ADDRESS_REQUIRED (swapper, instance,
       GetPhysicalDeviceSurfacePresentModesKHR);
   GET_PROC_ADDRESS_REQUIRED (swapper, device, CreateSwapchainKHR);
   GET_PROC_ADDRESS_REQUIRED (swapper, device, DestroySwapchainKHR);