fix(wayland): context in xr
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
use crate::core::client::CLIENTS;
|
||||
use crate::core::client_state::ClientStateParsed;
|
||||
#[cfg(feature = "wayland")]
|
||||
use crate::wayland::WAYLAND_DISPLAY;
|
||||
use crate::{CliArgs, STARDUST_INSTANCE};
|
||||
use directories::ProjectDirs;
|
||||
|
||||
Reference in New Issue
Block a user