mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Throw NotSupported error and update expected results for XRSession::UpdateRenderState (#33803)
* Throw NotSupported error and update expected results for xrSession_updateRenderState Signed-off-by: L Ashwin B <lashwinib@gmail.com> * deleted the log file Signed-off-by: L Ashwin B <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
febe7de0bf
commit
2a6cfbaaf9
2 changed files with 2 additions and 16 deletions
|
@ -676,16 +676,8 @@ impl XRSessionMethods for XRSession {
|
|||
|
||||
// https://immersive-web.github.io/layers/#updaterenderstatechanges
|
||||
// Step 1.
|
||||
if init.baseLayer.is_some() {
|
||||
if self.has_layers_feature() {
|
||||
return Err(Error::NotSupported);
|
||||
}
|
||||
// https://github.com/immersive-web/layers/issues/189
|
||||
if init.layers.is_some() {
|
||||
return Err(Error::Type(String::from(
|
||||
"Cannot set WebXR layers and baseLayer",
|
||||
)));
|
||||
}
|
||||
if init.baseLayer.is_some() && (self.has_layers_feature() || init.layers.is_some()) {
|
||||
return Err(Error::NotSupported);
|
||||
}
|
||||
|
||||
if let Some(Some(ref layers)) = init.layers {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue