mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Fix the windows build
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
|
use std::os::raw::c_void;
|
||||||
use std::io;
|
use std::io;
|
||||||
|
|
||||||
use libc;
|
|
||||||
use winapi;
|
use winapi;
|
||||||
use CreationError;
|
use CreationError;
|
||||||
|
|
||||||
@@ -40,8 +40,8 @@ impl<'a, 'b> CurrentContextGuard<'a, 'b> {
|
|||||||
impl<'a, 'b> Drop for CurrentContextGuard<'a, 'b> {
|
impl<'a, 'b> Drop for CurrentContextGuard<'a, 'b> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
unsafe {
|
unsafe {
|
||||||
gl::wgl::MakeCurrent(self.previous_hdc as *const libc::c_void,
|
gl::wgl::MakeCurrent(self.previous_hdc as *const c_void,
|
||||||
self.previous_hglrc as *const libc::c_void);
|
self.previous_hglrc as *const c_void);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user