aboutsummaryrefslogtreecommitdiffstats
path: root/examples/multiwindow.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-10-04 20:19:04 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-10-04 20:19:04 +0200
commit760f9d5fc5e7349c94b14da38e146301a9c671de (patch)
treef83aef04f7fbd1585ed0a29070f0fcc3dc0d65f4 /examples/multiwindow.rs
parentdf10bbd1632cfd29429270734da485d295e6b888 (diff)
parent2b35a6c9d1a1e2f748b887947b16ce67d05207c2 (diff)
downloadglutin-760f9d5fc5e7349c94b14da38e146301a9c671de.tar.gz
glutin-760f9d5fc5e7349c94b14da38e146301a9c671de.zip
Merge pull request #630 from tomaka/fix-examples
Fix the examples
Diffstat (limited to 'examples/multiwindow.rs')
-rw-r--r--examples/multiwindow.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/multiwindow.rs b/examples/multiwindow.rs
index acb2e99..f6154ce 100644
--- a/examples/multiwindow.rs
+++ b/examples/multiwindow.rs
@@ -11,10 +11,6 @@ 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 window1 = glutin::WindowBuilder::new().build().unwrap();
let window2 = glutin::WindowBuilder::new().build().unwrap();
@@ -37,7 +33,6 @@ fn main() {
let _ = t3.join();
}
-#[cfg(feature = "window")]
fn run(window: glutin::Window, color: (f32, f32, f32, f32)) {
let _ = unsafe { window.make_current() };