[d3d9] Defer surface creation if no HWND is given to device

Planetary Annihilation: TITANS creates a device with a NULL HWND and
requires it to succeed.
This commit is contained in:
Andrew Eikum 2022-06-02 13:48:18 -05:00 committed by Joshie
parent c596738205
commit 279b4b7ec2
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ namespace dxvk {
m_window = m_presentParams.hDeviceWindow;
UpdatePresentRegion(nullptr, nullptr);
if (!pDevice->GetOptions()->deferSurfaceCreation)
if (m_window && !pDevice->GetOptions()->deferSurfaceCreation)
CreatePresenter();
CreateBackBuffers(m_presentParams.BackBufferCount);