From 270e290af9f83590fe81504ec555d3a7da3cc303 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Wed, 30 Jul 2014 18:12:39 +0200 Subject: make_current() is now unsafe --- examples/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/window.rs b/examples/window.rs index 4066fed..daa856b 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -7,7 +7,7 @@ fn main() { let window = init::Window::new(None, "Hello world!", &Default::default(), None).unwrap(); - window.make_current(); + unsafe { window.make_current() }; gl::load_with(|symbol| window.get_proc_address(symbol) as *const libc::c_void); -- cgit v1.2.3