KEMBAR78
Specify that frame callbacks are not called without a base layer by toji · Pull Request #512 · immersive-web/webxr · GitHub
Skip to content

Conversation

@toji
Copy link
Member

@toji toji commented Feb 6, 2019

Pretty self-explanatory. We shouldn't execute callbacks if there's no render target, especially since that facilitates tracking the user movements without an associated visual changes.

@toji toji requested a review from NellWaliczek February 6, 2019 21:55

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.
1. If |session|'s [=list of pending render states=] is not empty, [=apply pending render states=].
1. If |session|'s {{XRSession/renderState}}'s {{XRRenderState/baseLayer}} is <code>null</code>, abort these steps.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a session is an inline session, should we also abort if there's no output context?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call! Fixed.

@toji toji merged commit 5eb00b0 into master Feb 12, 2019
@toji toji deleted the raf-layer-check branch February 12, 2019 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants