Skip to content

Ensure an immersive device is selected in makeXRCompatible() #809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 16, 2019

Conversation

Manishearth
Copy link
Contributor

Fixes #778

cc @asajeffrey

r? @toji

index.bs Outdated
1. If |context|'s [=XR compatible=] boolean is <code>true</code>, [=/resolve=] |promise| and abort these steps.
1. [=ensures an immersive XR device is selected|Ensure an immersive XR device is selected=].
1. If the [=XR/immersive XR device=] is <code>null</code>:
1. Set |context|'s [=XR compatible=] boolean to <code>true</code>.
Copy link
Member

Choose a reason for hiding this comment

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

This should be false, shouldn't it? (It would still allow for inline sessions, which don't check for context compatibility.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy paste bug 😄

Copy link
Member

@toji toji left a comment

Choose a reason for hiding this comment

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

The create-with-compatible-xr-device algorithm also needs to ensure a device is selected prior to running.

Copy link
Member

@toji toji left a comment

Choose a reason for hiding this comment

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

LGTM

@toji toji merged commit 5d4a00a into immersive-web:master Aug 16, 2019
@toji toji added this to the August 2019 milestone Aug 16, 2019
@Manishearth Manishearth deleted the makexr-select branch August 16, 2019 23:04
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.

What should creating xrCompatible GL context do if there is no active immersive device?
2 participants