Create HWND swap chain when window transparency is disabled on D3D12.

This commit is contained in:
Skyth 2025-11-03 17:21:09 +03:00
parent 0fdbf050e0
commit 4cc5177f6b
2 changed files with 40 additions and 31 deletions

View file

@ -2387,9 +2387,11 @@ void DisplayServerWindows::_get_window_style(bool p_main_window, bool p_initiali
r_style |= WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
r_style_ex |= WS_EX_ACCEPTFILES;
if (OS::get_singleton()->get_current_rendering_driver_name() == "d3d12") {
#ifdef DCOMP_ENABLED
if (OS::get_singleton()->is_layered_allowed() && OS::get_singleton()->get_current_rendering_driver_name() == "d3d12") {
r_style_ex |= WS_EX_NOREDIRECTIONBITMAP;
}
#endif
}
void DisplayServerWindows::_update_window_style(WindowID p_window, bool p_repaint) {