Proton/steam_helper
Paul Gofman 5b26b6a1d4 steam_helper: clean up OpenVR before getting OpenXR extensions in initialize_vr_data
Patch written by Emily <102429049+emily-is-my-username@users.noreply.github.com>

https://github.com/ValveSoftware/Proton/pull/8126

When using OpenComposite, both OpenVR and OpenXR functions may
call the same underlying OpenXR loader.

Because the OpenXR loader only supports a single active instance,
`initialize_vr_data` currently fails as an OpenXR instance
has already been initialized ath the time XR extensions are queried.

This commit fixes the problem by cleaning up the temporary
OpenVR context *before* initializing OpenXR instead of keeping it
open until the end of the call.

Fix for:
https://github.com/ValveSoftware/Proton/issues/7905

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2024-10-03 17:09:52 -06:00
..
32 steam_helper: Build as 64 bit. 2021-11-11 18:36:08 +02:00
64 steam_helper: Build as 64 bit. 2021-11-11 18:36:08 +02:00
json steam_helper: Import jsoncpp 2020-03-05 10:03:11 -06:00
jsoncpp.cpp steam_helper: Import jsoncpp 2020-03-05 10:03:11 -06:00
Makefile.in steam.exe: Use SOURCES instead of C(XX)_SRCS. 2024-02-15 15:53:25 +02:00
steam.cpp steam_helper: clean up OpenVR before getting OpenXR extensions in initialize_vr_data 2024-10-03 17:09:52 -06:00