Rustup
This commit is contained in:
parent
2e1fe8283f
commit
d33c138164
8 changed files with 32 additions and 48 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use std::marker::PhantomData;
|
||||
use std::os;
|
||||
use std::io;
|
||||
|
||||
use libc;
|
||||
use winapi;
|
||||
|
|
@ -30,7 +30,7 @@ impl<'a, 'b> CurrentContextGuard<'a, 'b> {
|
|||
|
||||
if result == 0 {
|
||||
return Err(CreationError::OsError(format!("wglMakeCurrent function failed: {}",
|
||||
os::error_string(os::errno()))));
|
||||
format!("{}", io::Error::last_os_error()))));
|
||||
}
|
||||
|
||||
Ok(CurrentContextGuard {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue