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

Support creating D3D9 device without a window #3894

Open
K0bin opened this issue Mar 6, 2024 · 2 comments
Open

Support creating D3D9 device without a window #3894

K0bin opened this issue Mar 6, 2024 · 2 comments
Labels

Comments

@K0bin
Copy link
Collaborator

K0bin commented Mar 6, 2024

In spite of what the documentation says, it's possible to create a D3D9 device with NULL passed for both PresentationParams::hDeviceWindow and FocusWindow. This will still create an implicit swapchain and you can query the backbuffers and render to those. You can even call Present and that returns S_OK.

According to Wine commit logs, Planetary Annihilation: Titans depends on this. This also makes the "visuals" Wine test crash with DXVK.

@K0bin K0bin added the d3d9 label Mar 6, 2024
@Joshua-Ashton
Copy link
Collaborator

I seem to remember this not working for me which is why the DXVK tests all have windows.

@K0bin
Copy link
Collaborator Author

K0bin commented Mar 7, 2024

image

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

No branches or pull requests

2 participants