make_current() is now unsafe

This commit is contained in:
Tomaka17 2014-07-30 18:12:39 +02:00
parent ec956688cd
commit 270e290af9
5 changed files with 9 additions and 8 deletions

View file

@ -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");
}