mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Load android OpenGL pointers (fixes #4824).
This commit is contained in:
parent
728f723753
commit
e5bf195098
1 changed files with 1 additions and 10 deletions
|
@ -89,7 +89,7 @@ impl Window {
|
||||||
|
|
||||||
glutin_window.set_window_resize_callback(Some(Window::nested_window_resize as fn(u32, u32)));
|
glutin_window.set_window_resize_callback(Some(Window::nested_window_resize as fn(u32, u32)));
|
||||||
|
|
||||||
Window::load_gl_functions(&glutin_window);
|
gl::load_with(|s| glutin_window.get_proc_address(s));
|
||||||
|
|
||||||
let window = Window {
|
let window = Window {
|
||||||
window: glutin_window,
|
window: glutin_window,
|
||||||
|
@ -134,15 +134,6 @@ impl Window {
|
||||||
(2, 0)
|
(2, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_os="android"))]
|
|
||||||
fn load_gl_functions(window: &glutin::Window) {
|
|
||||||
gl::load_with(|s| window.get_proc_address(s));
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(target_os="android")]
|
|
||||||
fn load_gl_functions(_: &glutin::Window) {
|
|
||||||
}
|
|
||||||
|
|
||||||
fn handle_window_event(&self, event: glutin::Event) -> bool {
|
fn handle_window_event(&self, event: glutin::Event) -> bool {
|
||||||
match event {
|
match event {
|
||||||
Event::KeyboardInput(element_state, _scan_code, virtual_key_code) => {
|
Event::KeyboardInput(element_state, _scan_code, virtual_key_code) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue