From f5a9a2a30208ed804dafdb28fb90789fcea678e3 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Wed, 20 Jan 2021 22:20:43 +0300 Subject: [PATCH] vrclient_x64: Do not change handle in in ivrcompositor_submit_vulkan(). No Man's Sky is giving us vulkan handle in that handle. It looks like the depth texture is not used by openvr, putting anything to this handle does not trigger any fault or Vulkan validation error. --- vrclient_x64/vrclient_x64/vrclient_main.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/vrclient_x64/vrclient_x64/vrclient_main.c b/vrclient_x64/vrclient_x64/vrclient_main.c index 775742c4..d3e0a20e 100644 --- a/vrclient_x64/vrclient_x64/vrclient_main.c +++ b/vrclient_x64/vrclient_x64/vrclient_main.c @@ -931,15 +931,6 @@ static EVRCompositorError ivrcompositor_submit_vulkan( our_depth.texture.handle = &our_vkdata; - their_vkdata = (struct VRVulkanTextureData_t *)our_depth.depth.handle; - our_depth_vkdata = *their_vkdata; - our_depth_vkdata.m_pDevice = get_native_VkDevice(our_depth_vkdata.m_pDevice); - our_depth_vkdata.m_pPhysicalDevice = get_native_VkPhysicalDevice(our_depth_vkdata.m_pPhysicalDevice); - our_depth_vkdata.m_pInstance = get_native_VkInstance(our_depth_vkdata.m_pInstance); - our_depth_vkdata.m_pQueue = get_native_VkQueue(our_depth_vkdata.m_pQueue); - - our_depth.depth.handle = &our_depth_vkdata; - tex = &our_depth; break;