mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Compile fix for glutin feature after rust upgrade.
This commit is contained in:
parent
fbf42c951b
commit
81aeab244c
1 changed files with 2 additions and 2 deletions
|
@ -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)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue