diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-11-05 15:39:20 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-11-05 15:39:20 +0100 |
commit | c63511e9e670e865b891b6097546fcafeac6446f (patch) | |
tree | 54f1b395234484522b34994b2d4ae36292d916af /src/win32/init.rs | |
parent | 2e44edea60a19919be467a1228ae971e7b988fec (diff) | |
parent | 7ce851dad9102c28ee2fd372ed9fd62e73364da9 (diff) | |
download | glutin-c63511e9e670e865b891b6097546fcafeac6446f.tar.gz glutin-c63511e9e670e865b891b6097546fcafeac6446f.zip |
Merge pull request #99 from tomaka/update-glrs
Update for changes in gl-rs
Diffstat (limited to 'src/win32/init.rs')
-rw-r--r-- | src/win32/init.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/init.rs b/src/win32/init.rs index bf84973..73a6a6a 100644 --- a/src/win32/init.rs +++ b/src/win32/init.rs @@ -350,7 +350,7 @@ pub fn new_window(builder_dimensions: Option<(uint, uint)>, builder_title: Strin if builder_vsync { if extra_functions.SwapIntervalEXT.is_loaded() { unsafe { ffi::wgl::MakeCurrent(hdc, context) }; - if extra_functions.SwapIntervalEXT(1) == 0 { + if unsafe { extra_functions.SwapIntervalEXT(1) } == 0 { tx.send(Err(format!("wglSwapIntervalEXT failed"))); unsafe { ffi::wgl::DeleteContext(context); } unsafe { ffi::DestroyWindow(real_window); } |