Skip to content

Commit

Permalink
Merge pull request #100763 from dsnopek/openxr-composition-layers-hol…
Browse files Browse the repository at this point in the history
…e-punch-visibility

OpenXR: Fix hiding/showing composition layers using hole punching
  • Loading branch information
Repiteo committed Dec 30, 2024
2 parents e55ea94 + d9ad5d1 commit d12eeef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/openxr/scene/openxr_composition_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d12eeef

Please sign in to comment.