mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
xr: Synchronize WebGL layer creation with underlying GL APIs.
This commit is contained in:
parent
bb17427526
commit
6ce5c25b72
1 changed files with 3 additions and 0 deletions
|
@ -192,6 +192,9 @@ impl XRWebGLLayer {
|
||||||
return Err(Error::Operation);
|
return Err(Error::Operation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure that we finish setting up this layer before continuing.
|
||||||
|
context.Finish();
|
||||||
|
|
||||||
// Step 10. "Return layer."
|
// Step 10. "Return layer."
|
||||||
Ok(XRWebGLLayer::new(
|
Ok(XRWebGLLayer::new(
|
||||||
&global.global(),
|
&global.global(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue