mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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);
|
||||
}
|
||||
|
||||
// Ensure that we finish setting up this layer before continuing.
|
||||
context.Finish();
|
||||
|
||||
// Step 10. "Return layer."
|
||||
Ok(XRWebGLLayer::new(
|
||||
&global.global(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue