Rustup
This commit is contained in:
parent
63d2cd263e
commit
cedc85c550
11 changed files with 28 additions and 19 deletions
|
|
@ -235,7 +235,7 @@ unsafe fn init(title: Vec<u16>, builder: BuilderAttribs<'static>,
|
|||
// handling vsync
|
||||
if builder.vsync {
|
||||
if extra_functions.SwapIntervalEXT.is_loaded() {
|
||||
let guard = try!(CurrentContextGuard::make_current(&real_window, &context));
|
||||
let _guard = try!(CurrentContextGuard::make_current(&real_window, &context));
|
||||
|
||||
if extra_functions.SwapIntervalEXT(1) == 0 {
|
||||
return Err(OsError(format!("wglSwapIntervalEXT failed")));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue