protonscr

Support creating D3D9 device without a window

dxvkclosed d3d9
doitsujin/dxvk#3894 · opened 2024-03-06 by K0bin · updated 2024-11-03 · 2 comments · github
KK0bin 2024-03-06 github

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.

Mmisyltoad 2024-03-06 github

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

KK0bin maintainer 2024-03-07 github

image

Nothing extracted yet.