aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-10-09 09:42:26 -0400
committerGitHub <noreply@github.com>2019-10-09 09:42:26 -0400
commit6ce5c25b7230955b7d601135dc7cc7500394d0b0 (patch)
treeb88215c6dd45bf53d23766d398a789838ff57c70 /components/script/dom
parentbb174275264e48ea91ce85f28829d465e61084bd (diff)
downloadservo-6ce5c25b7230955b7d601135dc7cc7500394d0b0.tar.gz
servo-6ce5c25b7230955b7d601135dc7cc7500394d0b0.zip
xr: Synchronize WebGL layer creation with underlying GL APIs.
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/xrwebgllayer.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/xrwebgllayer.rs b/components/script/dom/xrwebgllayer.rs
index dabff8fc947..f637f4ee96e 100644
--- a/components/script/dom/xrwebgllayer.rs
+++ b/components/script/dom/xrwebgllayer.rs
@@ -192,6 +192,9 @@ impl XRWebGLLayer {
return Err(Error::Operation);
}
+ // Ensure that we finish setting up this layer before continuing.
+ context.Finish();
+
// Step 10. "Return layer."
Ok(XRWebGLLayer::new(
&global.global(),