mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #112344 from blueskythlikesclouds/d3d12-transparent-background-fix
Create HWND swap chain when window transparency is disabled on D3D12.
This commit is contained in:
commit
f3c30408d4
2 changed files with 40 additions and 31 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue