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

Use DXGI_SWAP_CHAIN_DESC1 for creating swap chain if available for additional scaling options #3370

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

mtytel
Copy link
Contributor

@mtytel mtytel commented Oct 31, 2024

DXGI_SWAP_CHAIN_DESC1 has an additional 'Scaling' option that is set in bgfx's SwapChainDesc but is not used in DXGI_SWAP_CHAIN_DESC.

This change uses DXGI_SWAP_CHAIN_DESC1 if available and uses DXGI_SWAP_CHAIN_DESC otherwise.

src/dxgi.cpp Outdated Show resolved Hide resolved
@bkaradzic bkaradzic merged commit cc789e8 into bkaradzic:master Nov 1, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants