Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transparent windows become permanently opaque when opened on an HDR-enabled monitor in Windows #97959

Open
CW-Jesse opened this issue Oct 7, 2024 · 2 comments

Comments

@CW-Jesse
Copy link
Contributor

CW-Jesse commented Oct 7, 2024

Tested versions

  • Reproducible in: v4.3.stable

System information

Godot v4.3.stable - Windows 10.0.22631 - GLES3 (Compatibility) - AMD Radeon RX 6600 (Advanced Micro Devices, Inc.; 32.0.12011.1036)

Issue description

Transparent windows become permanently opaque if they open on an HDR-enabled monitor in Windows. Disabling "Auto HDR" in Windows has no effect.

Steps to reproduce

Requires an HDR monitor. Not tested on Windows 10 or Nvidia GPUs.

To create MRP, create project with the following settings:

[display]

window/size/transparent=true
window/per_pixel_transparency/allowed=true

[rendering]

renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
viewport/transparent_background=true

With MRP:

Run project on HDR-enabled monitor in Windows -> black background
Run project on HDR-disabled monitor -> transparent background ✅
Run project on HDR-disabled monitor and move window to HDR-enabled monitor -> transparent background ✅
Run project on HDR-disabled monitor and enable HDR on that monitor -> transparent background ✅

Minimal reproduction project (MRP)

mrp-godot-hdr-transparency.zip (Godot v4.3.stable, 2 KiB)

@0x0ACB
Copy link
Contributor

0x0ACB commented Nov 4, 2024

This is due to AMD forcing layered on dxgi for OpenGL and Vulkan if HDR is turned on #76167 (comment)

@CW-Jesse
Copy link
Contributor Author

CW-Jesse commented Nov 5, 2024

Good find, @0x0ACB.

Confirmed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants