File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ void OpenXRCompositionLayer::_bind_methods() {
192192}
193193
194194bool OpenXRCompositionLayer::_should_use_fallback_node () {
195- if (Engine::get_singleton ()->is_editor_hint ()) {
195+ if (Engine::get_singleton ()->is_editor_hint () || openxr_api == nullptr ) {
196196 return true ;
197197 } else if (openxr_session_running) {
198198 return enable_hole_punch || (!is_natively_supported () && !use_android_surface);
@@ -399,7 +399,7 @@ bool OpenXRCompositionLayer::get_alpha_blend() const {
399399}
400400
401401bool OpenXRCompositionLayer::is_natively_supported () const {
402- if (composition_layer_extension) {
402+ if (composition_layer_extension && openxr_api ) {
403403 return composition_layer_extension->is_available (openxr_layer_provider->get_openxr_type ());
404404 }
405405 return false ;
You can’t perform that action at this time.
0 commit comments