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:
parent
c596738205
commit
279b4b7ec2
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user