Skip to content

Commit

Permalink
correctly register RenderPlugin with WgpuSettings
Browse files Browse the repository at this point in the history
- registration changed since 0.10
- see bevyengine/bevy#6946
  • Loading branch information
abby.abb committed Mar 9, 2023
1 parent bdfca46 commit 873578f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bevy::{
prelude::*,
render::settings::WgpuSettings,
render::{settings::WgpuSettings, RenderPlugin},
};

#[derive(Resource)]
Expand Down Expand Up @@ -40,8 +40,10 @@ fn player_level_up(

fn main() {
App::new()
.insert_resource(WgpuSettings{backends: None,..default()})
.insert_resource(GameState {counter: 10})
.add_plugins(DefaultPlugins)
.add_plugins(DefaultPlugins
.set(
RenderPlugin { wgpu_settings: WgpuSettings { backends: None,..default() } }
))
.run();
}

0 comments on commit 873578f

Please sign in to comment.