diff options
author | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-07-30 18:12:39 +0200 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-07-30 18:12:39 +0200 |
commit | 270e290af9f83590fe81504ec555d3a7da3cc303 (patch) | |
tree | 94b75cd9c28b7e9b76f217879d41df12f9961169 /src/x11/mod.rs | |
parent | ec956688cd7fa43ccb3cbaf6b54890f400715662 (diff) | |
download | glutin-270e290af9f83590fe81504ec555d3a7da3cc303.tar.gz glutin-270e290af9f83590fe81504ec555d3a7da3cc303.zip |
make_current() is now unsafe
Diffstat (limited to 'src/x11/mod.rs')
-rw-r--r-- | src/x11/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/x11/mod.rs b/src/x11/mod.rs index 4c4d400..cc70a01 100644 --- a/src/x11/mod.rs +++ b/src/x11/mod.rs @@ -232,8 +232,8 @@ impl Window { } } - pub fn make_current(&self) { - let res = unsafe { ffi::glXMakeCurrent(self.display, self.window, self.context) }; + pub unsafe fn make_current(&self) { + let res = ffi::glXMakeCurrent(self.display, self.window, self.context); if res == 0 { fail!("glXMakeCurrent failed"); } |