Skip to content

Commit 752bab3

Browse files
fix openxr loading
1 parent 3131ee7 commit 752bab3

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Cargo.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ nalgebra-glm = { version = "0.20.0", features = [
1919
"convert-bytemuck",
2020
"serde-serialize",
2121
] }
22-
openxr = { version = "0.19", features = ["loaded"], optional = true }
22+
openxr = { version = "0.19", features = ["static", "loaded"], optional = true }
2323
web-time = "1.1.0"
2424
wgpu = { version = "27.0.1", default-features = false }
2525
winit = "0.30.12"

src/xr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub struct XrContext {
6767

6868
impl XrContext {
6969
pub fn new() -> Result<(Self, wgpu::Device, wgpu::Queue), Box<dyn std::error::Error>> {
70-
let xr_entry = unsafe { xr::Entry::load()? };
70+
let xr_entry = xr::Entry::linked();
7171

7272
#[cfg(target_os = "android")]
7373
xr_entry.initialize_android_loader()?;

0 commit comments

Comments
 (0)