aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(),