[Bug]: In MAS build, the transparent window is red (affects AMD graphics)
- Dominant language
- C++
- Stars
- 123k
- Forks
- 17.5k
- Avg merge
- 14h 31m
- Merged PRs (30d)
- 858
Description
### Preflight Checklist
- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.
### Electron Version
24.1.2 (and as far back as 23.0.0)
### What operating system are you using?
macOS
### Operating System Version
macOS Ventura 13.0
### What arch are you using?
x64
### Last Known Working Electron version
v22.3.6
### Expected Behavior
Transparent windows should be transparent.
### Actual Behavior
Transparent windows are red tinged:

### Testcase Gist URL
https://gist.github.com/cpoile/97f08192e630291fcc9ea90e7f5b442f
### Additional Information
Only appears to happen on Intel macs when using the AMD discreet GPU (turn off `Automatic graphics switching` in the `Battery` -> `Options` `System preferences` panel).
Thank you kindly!
Contributor guide
Assessment
This issue has not been assessed yet.