mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix again the handling of physical device extension functions
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user