From ae89737911bba9f831fe353334afb87636d89347 Mon Sep 17 00:00:00 2001 From: Tyson Whitehead Date: Sat, 2 Dec 2023 00:04:25 -0500 Subject: [PATCH] vrclient: Ignore Submit_TextureWithDepth for TextureType_DirectX Don't bother passing as SteamVR compositor ignores depth textures. Link: https://github.com/ValveSoftware/Proton/pull/7286 --- vrclient_x64/vrcompositor_manual.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vrclient_x64/vrcompositor_manual.c b/vrclient_x64/vrcompositor_manual.c index ff9d6746..d82452c2 100644 --- a/vrclient_x64/vrcompositor_manual.c +++ b/vrclient_x64/vrcompositor_manual.c @@ -64,6 +64,12 @@ static const w_Texture_t *load_compositor_texture_dxvk( uint32_t eye, const w_Te state->vkdata.m_nSampleCount = vkdata.m_nSampleCount; state->texture.texture.handle = &state->vkdata; + if (*flags & Submit_TextureWithDepth) + { + WARN( "Ignoring depth.\n" ); + *flags &= ~Submit_TextureWithDepth; + } + if (*flags & Submit_TextureWithPose) ((w_VRTextureWithPose_t *)&state->texture.texture)->mDeviceToAbsoluteTracking = ((w_VRTextureWithPose_t*)texture)->mDeviceToAbsoluteTracking;