Fix the examples
This commit is contained in:
parent
df10bbd163
commit
2b35a6c9d1
7 changed files with 1 additions and 31 deletions
|
|
@ -11,12 +11,7 @@ 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() {
|
||||
|
||||
fn main() {
|
||||
let window = glutin::WindowBuilder::new().build().unwrap();
|
||||
window.set_title("A fantastic window!");
|
||||
unsafe { window.make_current() };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue