Compile fix for glutin feature after rust upgrade.

This commit is contained in:
Glenn Watson 2014-12-18 12:58:19 +10:00
parent fbf42c951b
commit 81aeab244c

View file

@ -77,8 +77,8 @@ pub struct Window {
#[cfg(not(target_os="android"))] #[cfg(not(target_os="android"))]
fn load_gl_functions(glutin: &WindowHandle) { fn load_gl_functions(glutin: &WindowHandle) {
match glutin { match glutin {
&Windowed(ref window) => gl::load_with(|s| window.get_proc_address(s)), &WindowHandle::Windowed(ref window) => gl::load_with(|s| window.get_proc_address(s)),
&Headless(ref headless) => gl::load_with(|s| headless.context.get_proc_address(s)), &WindowHandle::Headless(ref headless) => gl::load_with(|s| headless.context.get_proc_address(s)),
} }
} }