From e565bfeb1372b885f8cced6a42596b731cb382b2 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Sat, 4 Oct 2014 19:17:02 +0200 Subject: Implement headless rendering --- tests/headless.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/headless.rs (limited to 'tests') diff --git a/tests/headless.rs b/tests/headless.rs new file mode 100644 index 0000000..b9ae598 --- /dev/null +++ b/tests/headless.rs @@ -0,0 +1,13 @@ +#![feature(phase)] +#![feature(tuple_indexing)] + +extern crate glutin; + +#[cfg(feature = "headless")] +#[test] +fn main() { + let window = glutin::HeadlessRendererBuilder::new(1024, 768).build().unwrap(); + + unsafe { window.make_current() }; + +} -- cgit v1.2.3