Skip to content

Commit

Permalink
fix(wayland): context in xr
Browse files Browse the repository at this point in the history
  • Loading branch information
technobaboo committed Jun 15, 2024
1 parent fbe9417 commit 65a9957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!");

Expand Down Expand Up @@ -232,8 +234,6 @@ fn stereokit_loop(
wayland.update();
drawable::draw(token);
audio::update();
#[cfg(feature = "wayland")]
wayland.make_context_current();
}
});

Expand Down
1 change: 1 addition & 0 deletions src/session.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 65a9957

Please sign in to comment.