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