xr: Synchronize WebGL layer creation with underlying GL APIs.

This commit is contained in:
Josh Matthews 2019-10-09 09:42:26 -04:00 committed by GitHub
parent bb17427526
commit 6ce5c25b72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),