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 --- src/win32/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/win32') diff --git a/src/win32/mod.rs b/src/win32/mod.rs index cfa0992..65374b7 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -310,8 +310,8 @@ impl Window { } } - pub fn make_current(&self) { - unsafe { ffi::wglMakeCurrent(self.hdc, self.context) } + pub unsafe fn make_current(&self) { + ffi::wglMakeCurrent(self.hdc, self.context) } pub fn get_proc_address(&self, addr: &str) -> *const () { -- cgit v1.2.3