From 7ce851dad9102c28ee2fd372ed9fd62e73364da9 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Wed, 5 Nov 2014 15:22:21 +0100 Subject: Update for changes in gl-rs --- src/win32/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/win32/init.rs') 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); } -- cgit v1.2.3