parse NO_VR=0
This commit is contained in:
@@ -15,10 +15,9 @@ use std::env;
|
|||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
env_logger::init().expect("env logger");
|
env_logger::init().expect("env logger");
|
||||||
let mut vr = if env::var("NO_VR").is_ok() {
|
let mut vr = match env::var("NO_VR") {
|
||||||
None
|
Ok(ref no_vr) if no_vr != "0" => None,
|
||||||
} else {
|
_ => Some(vr::VR::new().expect("VR init"))
|
||||||
Some(vr::VR::new().expect("VR init"))
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut window: PistonWindow =
|
let mut window: PistonWindow =
|
||||||
|
|||||||
Reference in New Issue
Block a user