Skip to content

Conversation

@bruvzg
Copy link
Member

@bruvzg bruvzg commented Nov 7, 2025

Follow up to #112344 which accidentally fixed D3D12 renderer on Wine (for apps w/o transparency).

Adds fallback in case CreateSwapChainForComposition is not supported, to ensure apps with enabled transparency will run on Wine as well.

See https://chat.godotengine.org/channel/platforms?msg=mdudSWFLtEYZe9Swg

Copy link
Contributor

@blueskythlikesclouds blueskythlikesclouds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to mention that WS_EX_NOREDIRECTIONBITMAP should be removed when this fails, but it's practically impossible for this function to fail on Windows, and Wine doesn't seem to care about the flag in any capacity, so it should be fine.

@AThousandShips AThousandShips changed the title [D3D12] Fallback to HWND if DComp init failed. [D3D12] Fall back to HWND if DComp init failed. Nov 7, 2025
@Repiteo Repiteo merged commit a3ec4c5 into godotengine:master Nov 7, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 7, 2025

Thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants