Skip to content
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

OpenXR: Fix hiding/showing composition layers using hole punching #100763

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dsnopek
Copy link
Contributor

@dsnopek dsnopek commented Dec 23, 2024

Currently, with a composition layer that uses hole punching, changing visible (to hide/show the composition layer) won't have an effect most of the time.

This is due to some old logic that is checking if the fallback node exists or not to see if we are using real composition layers (versus a fallback for OpenXR runtimes that don't support them). However, after we added the hole punching feature (in #91485), this logic no longer makes sense, because we are using the fallback mesh to setup hole punching as well.

So, this PR switches to checking is_natively_supported() instead, which is working in my testing

@dsnopek dsnopek added this to the 4.4 milestone Dec 23, 2024
@dsnopek dsnopek requested a review from a team as a code owner December 23, 2024 14:07
@dsnopek dsnopek added the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release topic:xr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants