1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-14 00:48:44 +01:00

[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

View File

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