From fc89a0c1182f15b9a8307245c256d922c9d12666 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sat, 25 May 2024 21:08:50 +0300 Subject: [PATCH] Fix build with `vuklan=no` and `d3d12=no` after #91505. --- platform/linuxbsd/x11/display_server_x11.cpp | 3 ++- platform/macos/display_server_macos.mm | 2 ++ platform/windows/display_server_windows.cpp | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/linuxbsd/x11/display_server_x11.cpp b/platform/linuxbsd/x11/display_server_x11.cpp index 2491064a5801..2c07acf94f73 100644 --- a/platform/linuxbsd/x11/display_server_x11.cpp +++ b/platform/linuxbsd/x11/display_server_x11.cpp @@ -5201,10 +5201,11 @@ bool DisplayServerX11::is_window_transparency_available() const { if (XGetSelectionOwner(x11_display, net_wm_cm) == None) { return false; } - +#if defined(RD_ENABLED) if (rendering_device && !rendering_device->is_composite_alpha_supported()) { return false; } +#endif return OS::get_singleton()->is_layered_allowed(); } diff --git a/platform/macos/display_server_macos.mm b/platform/macos/display_server_macos.mm index 0b11bf8287ed..db71c48eff38 100644 --- a/platform/macos/display_server_macos.mm +++ b/platform/macos/display_server_macos.mm @@ -3315,9 +3315,11 @@ } bool DisplayServerMacOS::is_window_transparency_available() const { +#if defined(RD_ENABLED) if (rendering_device && !rendering_device->is_composite_alpha_supported()) { return false; } +#endif return OS::get_singleton()->is_layered_allowed(); } diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp index b84e1f8eead0..03584977febf 100644 --- a/platform/windows/display_server_windows.cpp +++ b/platform/windows/display_server_windows.cpp @@ -3408,9 +3408,11 @@ bool DisplayServerWindows::is_window_transparency_available() const { return false; } } +#if defined(RD_ENABLED) if (rendering_device && !rendering_device->is_composite_alpha_supported()) { return false; } +#endif return OS::get_singleton()->is_layered_allowed(); }