Add workaround for current sdk-0.10 loader

This commit is contained in:
baldurk
2016-01-07 18:27:16 +01:00
parent 397f313336
commit 9eed8ff6be
+14
View File
@@ -238,6 +238,20 @@ VK_LAYER_EXPORT PFN_vkVoidFunction VKAPI_CALL RenderDoc_GetInstanceProcAddr(VkIn
InstanceDeviceInfo *instDevInfo = GetRecord(instance)->instDevInfo;
// TEMPORARY HACK until loader is patched
InstanceDeviceInfo dummy;
dummy.VK_KHR_xlib_surface = true;
dummy.VK_KHR_xcb_surface = true;
dummy.VK_KHR_win32_surface = true;
dummy.VK_KHR_surface = true;
dummy.VK_KHR_swapchain = true;
if(!WrappedVkInstance::IsAlloc(instance))
{
RDCLOG("Doing workaround for non-wrapped instance passed to GIPA");
instDevInfo = &dummy;
}
HookInitVulkanInstanceExts();
// GetInstanceProcAddr must also unconditionally return all device functions