1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-02 19:01:36 +00:00

Merge pull request #104470 from m4gr3d/use_composition_layer_fallback_for_panel

Enable composition layer fallback in panel mode
This commit is contained in:
Thaddeus Crews
2025-03-25 11:08:59 -05:00

View File

@@ -192,7 +192,7 @@ void OpenXRCompositionLayer::_bind_methods() {
}
bool OpenXRCompositionLayer::_should_use_fallback_node() {
if (Engine::get_singleton()->is_editor_hint()) {
if (Engine::get_singleton()->is_editor_hint() || openxr_api == nullptr) {
return true;
} else if (openxr_session_running) {
return enable_hole_punch || (!is_natively_supported() && !use_android_surface);
@@ -399,7 +399,7 @@ bool OpenXRCompositionLayer::get_alpha_blend() const {
}
bool OpenXRCompositionLayer::is_natively_supported() const {
if (composition_layer_extension) {
if (composition_layer_extension && openxr_api) {
return composition_layer_extension->is_available(openxr_layer_provider->get_openxr_type());
}
return false;