This commit is contained in:
Pierre Krieger 2015-04-02 22:04:17 +02:00
parent 2e1fe8283f
commit d33c138164
8 changed files with 32 additions and 48 deletions

View file

@ -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 {