mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Fix magic leap build.
This commit is contained in:
parent
f3e237e558
commit
4fe129109b
1 changed files with 5 additions and 3 deletions
|
@ -144,8 +144,8 @@ pub unsafe extern "C" fn init_servo(
|
|||
VRInitOptions::None
|
||||
} else {
|
||||
let name = String::from("Magic Leap VR Display");
|
||||
let (service, heartbeat) =
|
||||
MagicLeapVRService::new(name, ctxt, gl.clone()).expect("Failed to create VR service");
|
||||
let (service, heartbeat) = MagicLeapVRService::new(name, ctxt, gl.gl_wrapper.clone())
|
||||
.expect("Failed to create VR service");
|
||||
let service = Box::new(service);
|
||||
let heartbeat = Box::new(heartbeat);
|
||||
VRInitOptions::VRService(service, heartbeat)
|
||||
|
@ -157,6 +157,8 @@ pub unsafe extern "C" fn init_servo(
|
|||
enable_subpixel_text_antialiasing: false,
|
||||
vr_init,
|
||||
coordinates,
|
||||
gl_context_pointer: Some(gl.gl_context),
|
||||
native_display_pointer: Some(gl.display),
|
||||
};
|
||||
let wakeup = Box::new(EventLoopWakerInstance);
|
||||
let shut_down_complete = Rc::new(Cell::new(false));
|
||||
|
@ -172,7 +174,7 @@ pub unsafe extern "C" fn init_servo(
|
|||
keyboard,
|
||||
});
|
||||
info!("Starting servo");
|
||||
simpleservo::init(opts, gl, wakeup, callbacks).expect("error initializing Servo");
|
||||
simpleservo::init(opts, gl.gl_wrapper, wakeup, callbacks).expect("error initializing Servo");
|
||||
|
||||
let result = Box::new(ServoInstance {
|
||||
scroll_state: ScrollState::TriggerUp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue