Skip to content

Commit

Permalink
fix: force origin local mode
Browse files Browse the repository at this point in the history
  • Loading branch information
technobaboo committed Jul 23, 2024
1 parent 73ed121 commit 41d22da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use std::sync::Arc;
use std::time::Duration;
use stereokit_rust::material::Material;
use stereokit_rust::shader::Shader;
use stereokit_rust::sk::{sk_quit, AppMode, DepthMode, QuitReason, SkSettings};
use stereokit_rust::sk::{sk_quit, AppMode, DepthMode, OriginMode, QuitReason, SkSettings};
use stereokit_rust::system::{LogLevel, Renderer};
use stereokit_rust::tex::{SHCubemap, Tex, TexFormat, TexType};
use stereokit_rust::ui::Ui;
Expand Down Expand Up @@ -179,6 +179,7 @@ fn stereokit_loop(
.overlay_app(args.overlay_priority.is_some())
.overlay_priority(args.overlay_priority.unwrap_or(u32::MAX))
.disable_desktop_input_window(true)
.origin(OriginMode::Local)
.render_scaling(2.0)
.init()
.expect("StereoKit failed to initialize");
Expand Down

0 comments on commit 41d22da

Please sign in to comment.