mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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
|
// https://immersive-web.github.io/layers/#updaterenderstatechanges
|
||||||
// Step 1.
|
// Step 1.
|
||||||
if init.baseLayer.is_some() {
|
if init.baseLayer.is_some() && (self.has_layers_feature() || init.layers.is_some()) {
|
||||||
if self.has_layers_feature() {
|
return Err(Error::NotSupported);
|
||||||
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 let Some(Some(ref layers)) = init.layers {
|
if let Some(Some(ref layers)) = init.layers {
|
||||||
|
|
|
@ -4,9 +4,3 @@
|
||||||
|
|
||||||
[Ensure XRSession throws appropriate errors when updating render state without layers feature enabled - webgl2]
|
[Ensure XRSession throws appropriate errors when updating render state without layers feature enabled - webgl2]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Ensure XRSession throws appropriate errors when updating render state with layers feature enabled - webgl]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Ensure XRSession throws appropriate errors when updating render state with layers feature enabled - webgl2]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue