Skip to content

Commit d12eeef

Browse files
committed
Merge pull request #100763 from dsnopek/openxr-composition-layers-hole-punch-visibility
OpenXR: Fix hiding/showing composition layers using hole punching
2 parents e55ea94 + d9ad5d1 commit d12eeef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openxr/scene/openxr_composition_layer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ void OpenXRCompositionLayer::_notification(int p_what) {
401401
}
402402
} break;
403403
case NOTIFICATION_VISIBILITY_CHANGED: {
404-
if (!fallback && openxr_session_running && is_inside_tree()) {
404+
if (is_natively_supported() && openxr_session_running && is_inside_tree()) {
405405
if (is_visible()) {
406406
_setup_composition_layer_provider();
407407
} else {

0 commit comments

Comments
 (0)