Skip to content

Commit dd43d40

Browse files
committed
Merge pull request #103338 from dsnopek/openxr-passthrough-emulation-wins
OpenXR: Emulated alpha blend mode should override the real blend mode
2 parents 9014202 + fd622af commit dd43d40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/openxr/openxr_api.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -3641,10 +3641,10 @@ void OpenXRAPI::set_emulate_environment_blend_mode_alpha_blend(bool p_enabled) {
36413641
}
36423642

36433643
OpenXRAPI::OpenXRAlphaBlendModeSupport OpenXRAPI::is_environment_blend_mode_alpha_blend_supported() {
3644-
if (is_environment_blend_mode_supported(XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND)) {
3645-
return OPENXR_ALPHA_BLEND_MODE_SUPPORT_REAL;
3646-
} else if (emulate_environment_blend_mode_alpha_blend) {
3644+
if (emulate_environment_blend_mode_alpha_blend) {
36473645
return OPENXR_ALPHA_BLEND_MODE_SUPPORT_EMULATING;
3646+
} else if (is_environment_blend_mode_supported(XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND)) {
3647+
return OPENXR_ALPHA_BLEND_MODE_SUPPORT_REAL;
36483648
}
36493649
return OPENXR_ALPHA_BLEND_MODE_SUPPORT_NONE;
36503650
}

0 commit comments

Comments
 (0)