diff options
Diffstat (limited to 'components/webvr/webvr_thread.rs')
-rw-r--r-- | components/webvr/webvr_thread.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/components/webvr/webvr_thread.rs b/components/webvr/webvr_thread.rs index c782fb2e562..d27e63d6c0b 100644 --- a/components/webvr/webvr_thread.rs +++ b/components/webvr/webvr_thread.rs @@ -5,13 +5,13 @@ use canvas_traits::webgl; use crossbeam_channel::{unbounded, Receiver, Sender}; use euclid::default::Size2D; -use gleam::gl::Gl; use ipc_channel::ipc; use ipc_channel::ipc::{IpcReceiver, IpcSender}; use msg::constellation_msg::PipelineId; use rust_webvr::VRServiceManager; use script_traits::ConstellationMsg; use servo_config::pref; +use sparkle::gl::Gl; use std::collections::hash_map::Entry; use std::collections::{HashMap, HashSet}; use std::sync::mpsc; @@ -429,12 +429,7 @@ impl WebVRCompositorHandler { impl webgl::WebVRRenderHandler for WebVRCompositorHandler { #[allow(unsafe_code)] - fn handle( - &mut self, - gl: &dyn Gl, - cmd: webgl::WebVRCommand, - texture: Option<(u32, Size2D<i32>)>, - ) { + fn handle(&mut self, gl: &Gl, cmd: webgl::WebVRCommand, texture: Option<(u32, Size2D<i32>)>) { match cmd { webgl::WebVRCommand::Create(compositor_id) => { if let Some(compositor) = self.create_compositor(compositor_id) { |