Fix again the handling of physical device extension functions

This commit is contained in:
baldurk
2020-01-27 20:31:07 +00:00
parent ff50bfc95e
commit d827e0a2f1
+5 -3
View File
@@ -328,6 +328,8 @@ VK_LAYER_RENDERDOC_CaptureGetDeviceProcAddr(VkDevice device, const char *pName)
HookInitVulkanDeviceExts();
HookInitVulkanInstanceExts_PhysDev();
if(instDevInfo->brokenGetDeviceProcAddr)
{
HookInitVulkanInstanceExts();
@@ -437,6 +439,9 @@ VK_LAYER_RENDERDOC_Capture_layerGetPhysicalDeviceProcAddr(VkInstance instance, c
if(!strcmp(pName, STRINGIZE(CONCAT(vk, function)))) \
return NULL;
// any extensions that are known to be physical device functions, return here
HookInitVulkanInstanceExts_PhysDev();
HookInitVulkanInstance();
HookInitVulkanDevice();
@@ -470,9 +475,6 @@ VK_LAYER_RENDERDOC_Capture_layerGetPhysicalDeviceProcAddr(VkInstance instance, c
!strcmp(pName, STRINGIZE(CONCAT(vk, CONCAT(function, suffix))))) \
return NULL;
// any extensions that are known to be physical device functions, return here
HookInitVulkanInstanceExts_PhysDev();
HookInitVulkanInstanceExts();
HookInitVulkanDeviceExts();