Skip to content

Commit a141a79

Browse files
committed
Specify that frame callbacks are not called without a base layer
1 parent 2f84c43 commit a141a79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,9 @@ When the <dfn method for="XRSession">cancelAnimationFrame(|handle|)</dfn> method
520520

521521
When an {{XRSession}} |session| receives updated [=viewer=] state from the [=XR device=], it runs an <dfn>XR animation frame</dfn> with a timestamp |now| and an {{XRFrame}} |frame|, which MUST run the following steps regardless of if the [=list of animation frame callbacks=] is empty or not:
522522

523-
1. Let |callbacks| be a list of the entries in |session|'s [=list of animation frame callback=], in the order in which they were added to the list.
524523
1. If |session|'s [=list of pending render states=] is not empty, [=apply pending render states=].
524+
1. If |session|'s {{XRSession/renderState}}'s {{XRRenderState/baseLayer}} is <code>null</code>, abort these steps.
525+
1. Let |callbacks| be a list of the entries in |session|'s [=list of animation frame callback=], in the order in which they were added to the list.
525526
1. Set |session|'s [=list of animation frame callbacks=] to the empty list.
526527
1. Set |frame|'s [=active=] boolean to <code>true</code>.
527528
1. For each entry in |callbacks|, in order:

0 commit comments

Comments
 (0)