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
This commit is contained in:
Tyson Whitehead 2023-12-02 00:04:25 -05:00 committed by Arkadiusz Hiler
parent 8c44c9e9ee
commit ae89737911

View file

@ -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;