fix(wayland): context in xr

This commit is contained in:
Nova
2024-06-14 22:33:08 -04:00
parent fbe941749a
commit 65a9957be1
2 changed files with 3 additions and 2 deletions

View File

@@ -201,6 +201,8 @@ fn stereokit_loop(
#[cfg(feature = "wayland")]
let mut wayland = wayland::Wayland::new().expect("Could not initialize wayland");
#[cfg(feature = "wayland")]
wayland.make_context_current();
sk_ready_notifier.notify_waiters();
info!("Stardust ready!");
@@ -232,8 +234,6 @@ fn stereokit_loop(
wayland.update();
drawable::draw(token);
audio::update();
#[cfg(feature = "wayland")]
wayland.make_context_current();
}
});