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:
chickenleaf 2024-10-11 17:39:41 +05:30 committed by GitHub
parent febe7de0bf
commit 2a6cfbaaf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 16 deletions

View file

@ -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 {

View file

@ -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