diff --git a/src/main.rs b/src/main.rs index b087af5..1cd73cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,21 +6,16 @@ use winit::dpi::LogicalSize; use winit::event_loop::EventLoop; use winit::window::WindowBuilder; -use nuance::{Command, Nuance}; -use std::path::PathBuf; -use std::str::FromStr; +use nuance::Nuance; fn main() -> Result<()> { let mut power_preference = PowerPreference::LowPower; - let mut shader = None; for arg in std::env::args() { match arg.as_str() { "-H" => { power_preference = PowerPreference::HighPerformance; } - _ => { - shader = Some(arg); - } + _ => {} } } @@ -53,12 +48,6 @@ fn main() -> Result<()> { .with_visible(true); let window = builder.build(&event_loop)?; - if let Some(shader) = shader { - event_loop - .create_proxy() - .send_event(Command::Load(PathBuf::from(shader)))?; - } - // Going async ! let app = futures_executor::block_on(Nuance::init(window, power_preference))?; futures_executor::block_on(app.run(event_loop))?;