diff options
author | Josh Matthews <josh@joshmatthews.net> | 2020-07-17 14:13:09 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2020-07-20 15:52:16 -0400 |
commit | c34e5871405c1c7dd1ff43369f937ac449ba9a82 (patch) | |
tree | ea4d31d9c33efd51c5ef1a028aefff77da0df218 /components/script/dom/xrsession.rs | |
parent | 9daadd03cc0c1673319930fba96875c3664bc866 (diff) | |
download | servo-c34e5871405c1c7dd1ff43369f937ac449ba9a82.tar.gz servo-c34e5871405c1c7dd1ff43369f937ac449ba9a82.zip |
Update XRWebGLLayer to match specification.
Diffstat (limited to 'components/script/dom/xrsession.rs')
-rw-r--r-- | components/script/dom/xrsession.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/dom/xrsession.rs b/components/script/dom/xrsession.rs index c9f7b108a94..87dcf19f622 100644 --- a/components/script/dom/xrsession.rs +++ b/components/script/dom/xrsession.rs @@ -16,9 +16,7 @@ use crate::dom::bindings::codegen::Bindings::XRSessionBinding::XRFrameRequestCal use crate::dom::bindings::codegen::Bindings::XRSessionBinding::XRSessionMethods; use crate::dom::bindings::codegen::Bindings::XRSessionBinding::XRVisibilityState; use crate::dom::bindings::codegen::Bindings::XRSystemBinding::XRSessionMode; -use crate::dom::bindings::codegen::Bindings::XRWebGLLayerBinding::{ - XRWebGLLayerMethods, XRWebGLRenderingContext, -}; +use crate::dom::bindings::codegen::Bindings::XRWebGLLayerBinding::XRWebGLRenderingContext; use crate::dom::bindings::error::{Error, ErrorResult}; use crate::dom::bindings::inheritance::Castable; use crate::dom::bindings::refcounted::Trusted; @@ -497,7 +495,7 @@ impl XRSession { pub fn dirty_layers(&self) { if let Some(layer) = self.RenderState().GetBaseLayer() { - match layer.Context() { + match layer.context() { XRWebGLRenderingContext::WebGLRenderingContext(c) => c.mark_as_dirty(), XRWebGLRenderingContext::WebGL2RenderingContext(c) => { c.base_context().mark_as_dirty() |