From fd622afb1d808ec16047691b88699875c3a64b61 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Wed, 26 Feb 2025 17:35:03 -0600 Subject: [PATCH] OpenXR: Emulated alpha blend mode should override the real blend mode --- modules/openxr/openxr_api.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/openxr/openxr_api.cpp b/modules/openxr/openxr_api.cpp index 17ee09e29e1..f432092576d 100644 --- a/modules/openxr/openxr_api.cpp +++ b/modules/openxr/openxr_api.cpp @@ -3641,10 +3641,10 @@ void OpenXRAPI::set_emulate_environment_blend_mode_alpha_blend(bool p_enabled) { } OpenXRAPI::OpenXRAlphaBlendModeSupport OpenXRAPI::is_environment_blend_mode_alpha_blend_supported() { - if (is_environment_blend_mode_supported(XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND)) { - return OPENXR_ALPHA_BLEND_MODE_SUPPORT_REAL; - } else if (emulate_environment_blend_mode_alpha_blend) { + if (emulate_environment_blend_mode_alpha_blend) { return OPENXR_ALPHA_BLEND_MODE_SUPPORT_EMULATING; + } else if (is_environment_blend_mode_supported(XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND)) { + return OPENXR_ALPHA_BLEND_MODE_SUPPORT_REAL; } return OPENXR_ALPHA_BLEND_MODE_SUPPORT_NONE; }