aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-07-30 18:12:39 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-07-30 18:12:39 +0200
commit270e290af9f83590fe81504ec555d3a7da3cc303 (patch)
tree94b75cd9c28b7e9b76f217879d41df12f9961169 /examples
parentec956688cd7fa43ccb3cbaf6b54890f400715662 (diff)
downloadglutin-270e290af9f83590fe81504ec555d3a7da3cc303.tar.gz
glutin-270e290af9f83590fe81504ec555d3a7da3cc303.zip
make_current() is now unsafe
Diffstat (limited to 'examples')
-rw-r--r--examples/window.rs2
1 files changed, 1 insertions, 1 deletions
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);