make_current() is now unsafe
This commit is contained in:
parent
ec956688cd
commit
270e290af9
5 changed files with 9 additions and 8 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue