Browse Source

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

OpenXR: Fix hiding/showing composition layers using hole punching
Thaddeus Crews 7 months ago
parent
commit
d12eeefcf4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/openxr/scene/openxr_composition_layer.cpp

+ 1 - 1
modules/openxr/scene/openxr_composition_layer.cpp

@@ -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 {