Skip to content

Commit 05bffa8

Browse files
dsnopekSpartan322
authored andcommitted
OpenXR: Fix hiding/showing composition layers using hole punching
(cherry picked from commit d9ad5d1)
1 parent 911bf70 commit 05bffa8

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
@@ -344,7 +344,7 @@ void OpenXRCompositionLayer::_notification(int p_what) {
344344
}
345345
} break;
346346
case NOTIFICATION_VISIBILITY_CHANGED: {
347-
if (!fallback && openxr_session_running && is_inside_tree()) {
347+
if (is_natively_supported() && openxr_session_running && is_inside_tree()) {
348348
if (layer_viewport && is_visible()) {
349349
openxr_layer_provider->set_viewport(layer_viewport->get_viewport_rid(), layer_viewport->get_size());
350350
} else {

0 commit comments

Comments
 (0)