mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fixed inconsistency in import of gl::Gl
All other uses of `Gl` in this file use the qualified path `gl::Gl`.
This commit is contained in:
parent
3d32efad2a
commit
1e9de470ea
1 changed files with 6 additions and 2 deletions
|
@ -11,7 +11,6 @@ use canvas_traits::webgl::{WebGLSender, WebVRCommand, WebVRRenderHandler};
|
||||||
use euclid::Size2D;
|
use euclid::Size2D;
|
||||||
use fnv::FnvHashMap;
|
use fnv::FnvHashMap;
|
||||||
use gleam::gl;
|
use gleam::gl;
|
||||||
use gleam::gl::Gl;
|
|
||||||
use servo_config::prefs::PREFS;
|
use servo_config::prefs::PREFS;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
|
@ -113,7 +112,12 @@ impl WebGLExternalImageApi for WebGLExternalImages {
|
||||||
struct WebVRRenderWrapper(Box<dyn WebVRRenderHandler>);
|
struct WebVRRenderWrapper(Box<dyn WebVRRenderHandler>);
|
||||||
|
|
||||||
impl WebVRRenderHandler for WebVRRenderWrapper {
|
impl WebVRRenderHandler for WebVRRenderWrapper {
|
||||||
fn handle(&mut self, gl: &dyn Gl, command: WebVRCommand, texture: Option<(u32, Size2D<i32>)>) {
|
fn handle(
|
||||||
|
&mut self,
|
||||||
|
gl: &dyn gl::Gl,
|
||||||
|
command: WebVRCommand,
|
||||||
|
texture: Option<(u32, Size2D<i32>)>,
|
||||||
|
) {
|
||||||
self.0.handle(gl, command, texture);
|
self.0.handle(gl, command, texture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue