webxr: Add some missing internal checks/validation (#33318)

* Ensure depthFar is non-negative

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Properly append default features in requestSession

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Ensure XRRigidTransform init members have finite values

Signed-off-by: Daniel Adams <msub2official@gmail.com>

---------

Signed-off-by: Daniel Adams <msub2official@gmail.com>
This commit is contained in:
Daniel Adams 2024-09-05 03:39:27 +00:00 committed by GitHub
parent aadc212b95
commit 75c7712905
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 35 additions and 40 deletions

View file

@ -1,7 +1,2 @@
[render_state_update.https.html]
expected: ERROR
[updateRenderState clamps appropriately near/far clipping planes - webgl]
expected: FAIL
[updateRenderState clamps appropriately near/far clipping planes - webgl2]
expected: FAIL

View file

@ -1,7 +0,0 @@
[xrRigidTransform_constructor.https.html]
[XRRigidTransform constructor works - webgl2]
expected: FAIL
[XRRigidTransform constructor works - webgl]
expected: FAIL

View file

@ -1,6 +0,0 @@
[xrSession_enabledFeatures.https.html]
[Validate enabledFeatures on XRSession - webgl]
expected: FAIL
[Validate enabledFeatures on XRSession - webgl2]
expected: FAIL

View file

@ -1,7 +1,2 @@
[render_state_update.https.html]
expected: ERROR
[updateRenderState clamps appropriately near/far clipping planes - webgl]
expected: FAIL
[updateRenderState clamps appropriately near/far clipping planes - webgl2]
expected: FAIL

View file

@ -1,7 +0,0 @@
[xrRigidTransform_constructor.https.html]
[XRRigidTransform constructor works - webgl2]
expected: FAIL
[XRRigidTransform constructor works - webgl]
expected: FAIL

View file

@ -1,6 +0,0 @@
[xrSession_enabledFeatures.https.html]
[Validate enabledFeatures on XRSession - webgl]
expected: FAIL
[Validate enabledFeatures on XRSession - webgl2]
expected: FAIL