aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32
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 /src/win32
parentec956688cd7fa43ccb3cbaf6b54890f400715662 (diff)
downloadglutin-270e290af9f83590fe81504ec555d3a7da3cc303.tar.gz
glutin-270e290af9f83590fe81504ec555d3a7da3cc303.zip
make_current() is now unsafe
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/mod.rs4
1 files changed, 2 insertions, 2 deletions
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 () {