Skip to content

Commit

Permalink
only use Immediate mode in linux
Browse files Browse the repository at this point in the history
  • Loading branch information
asafigan committed Aug 29, 2022
1 parent 953b166 commit 5a7d170
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ mod utils;
pub fn build_app() -> App {
let mut app = App::new();

app.insert_resource(WindowDescriptor {
present_mode: bevy::window::PresentMode::Immediate,
..Default::default()
})
.insert_resource(AmbientLight {
#[cfg(target_os = "linux")]
{
app.insert_resource(WindowDescriptor {
present_mode: bevy::window::PresentMode::Immediate,
..Default::default()
});
}

app.insert_resource(AmbientLight {
brightness: 2.0,
..default()
})
Expand Down

0 comments on commit 5a7d170

Please sign in to comment.