Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

steam_helper: get OpenXR extensions before initializing OpenVR #7906

Commits on Jul 15, 2024

  1. steam_helper: get OpenXR extensions before initializing OpenVR

    When using OpenComposite, both OpenVR and OpenXR functions will call the same underlying OpenXR loader.
    
    Because the OpenXR loader only supports a single active instance,
    `initialize_vr_data` currently fails because an OpenXR instance
    has already been initialized when XR extensions are queried.
    
    For SteamVR, the runtime already needs to be running for `xrCreateInstance` to succeed.
    
    To support both setups, this commit tries to query
    XR extensions before OpenVR initialization, but still defaults
    to the previous behavior if the first try was unsuccessful.
    
    Fix for:
    ValveSoftware#7905
    emily-is-my-username committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    dbbb929 View commit details
    Browse the repository at this point in the history