Skip to content

Commit

Permalink
use linked openxr
Browse files Browse the repository at this point in the history
  • Loading branch information
galister committed Mar 9, 2024
1 parent 473c6e2 commit 2f8dcaf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/backend/openxr/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ use openxr as xr;
use xr::OverlaySessionCreateFlagsEXTX;

pub(super) fn init_xr() -> Result<(xr::Instance, xr::SystemId), anyhow::Error> {
let Ok(entry) = (unsafe { xr::Entry::load() }) else {
bail!("OpenXR Loader not found.");
};
let entry = xr::Entry::linked();

let Ok(available_extensions) = entry.enumerate_extensions() else {
bail!("Failed to enumerate OpenXR extensions.");
Expand Down

0 comments on commit 2f8dcaf

Please sign in to comment.