You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
OpenXR: Fix hiding/showing composition layers using hole punching
(cherry picked from commit d9ad5d1cd4)
This commit is contained in:
committed by
Rémi Verschelde
parent
e5b78070b1
commit
9e4b5699fc
@@ -342,7 +342,7 @@ void OpenXRCompositionLayer::_notification(int p_what) {
|
|||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_VISIBILITY_CHANGED: {
|
case NOTIFICATION_VISIBILITY_CHANGED: {
|
||||||
if (!fallback && openxr_session_running && is_inside_tree()) {
|
if (is_natively_supported() && openxr_session_running && is_inside_tree()) {
|
||||||
if (layer_viewport && is_visible()) {
|
if (layer_viewport && is_visible()) {
|
||||||
openxr_layer_provider->set_viewport(layer_viewport->get_viewport_rid(), layer_viewport->get_size());
|
openxr_layer_provider->set_viewport(layer_viewport->get_viewport_rid(), layer_viewport->get_size());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user