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