diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-10-09 20:04:02 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-10-09 20:04:02 +0200 |
commit | 093c188b114d879543b98f60b6e9a3489d9cf70f (patch) | |
tree | 4a788e43172cd968c2a2cd1bd7d3102ea6937c80 /examples/window.rs | |
parent | cfb0cb70013772492c1930ced62f48aa6cb372ff (diff) | |
parent | e565bfeb1372b885f8cced6a42596b731cb382b2 (diff) | |
download | glutin-093c188b114d879543b98f60b6e9a3489d9cf70f.tar.gz glutin-093c188b114d879543b98f60b6e9a3489d9cf70f.zip |
Merge pull request #44 from tomaka/headless-rendering
Implement headless rendering
Diffstat (limited to 'examples/window.rs')
-rw-r--r-- | examples/window.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/window.rs b/examples/window.rs index b2ad82e..769712a 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -12,6 +12,10 @@ mod support; #[cfg(target_os = "android")] android_start!(main) +#[cfg(not(feature = "window"))] +fn main() { println!("This example requires glutin to be compiled with the `window` feature"); } + +#[cfg(feature = "window")] fn main() { let window = glutin::Window::new().unwrap(); |