Merge pull request #100763 from dsnopek/openxr-composition-layers-hole-punch-visibility

OpenXR: Fix hiding/showing composition layers using hole punching
This commit is contained in:
Thaddeus Crews 2024-12-30 08:58:57 -06:00
commit d12eeefcf4
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

View file

@ -401,7 +401,7 @@ void OpenXRCompositionLayer::_notification(int p_what) {
}
} break;
case NOTIFICATION_VISIBILITY_CHANGED: {
if (!fallback && openxr_session_running && is_inside_tree()) {
if (is_natively_supported() && openxr_session_running && is_inside_tree()) {
if (is_visible()) {
_setup_composition_layer_provider();
} else {