mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 21:30:03 -04:00
make_current() is now unsafe
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user