mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-14 09:23:53 +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;
|
||||
|
||||
UpdatePresentRegion(nullptr, nullptr);
|
||||
if (!pDevice->GetOptions()->deferSurfaceCreation)
|
||||
if (m_window && !pDevice->GetOptions()->deferSurfaceCreation)
|
||||
CreatePresenter();
|
||||
|
||||
CreateBackBuffers(m_presentParams.BackBufferCount);
|
||||
|
Loading…
Reference in New Issue
Block a user