From 81aeab244c04291eb57ea3e0569bf5bfc20ef782 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Thu, 18 Dec 2014 12:58:19 +1000 Subject: [PATCH] Compile fix for glutin feature after rust upgrade. --- ports/glutin/window.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index 70ef9fcfd1b..35406b6702c 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -77,8 +77,8 @@ pub struct Window { #[cfg(not(target_os="android"))] fn load_gl_functions(glutin: &WindowHandle) { match glutin { - &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::Windowed(ref window) => gl::load_with(|s| window.get_proc_address(s)), + &WindowHandle::Headless(ref headless) => gl::load_with(|s| headless.context.get_proc_address(s)), } }