mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d9] Early return D3D_OK on present with a NULL m_window
This commit is contained in:
parent
b38c6b4dc2
commit
484953e6c5
1 changed files with 3 additions and 3 deletions
|
@ -153,6 +153,9 @@ namespace dxvk {
|
|||
if (hDestWindowOverride != nullptr)
|
||||
m_window = hDestWindowOverride;
|
||||
|
||||
if (m_window == nullptr)
|
||||
return D3D_OK;
|
||||
|
||||
UpdateWindowCtx();
|
||||
|
||||
bool recreate = false;
|
||||
|
@ -171,9 +174,6 @@ namespace dxvk {
|
|||
|
||||
m_lastDialog = m_dialog;
|
||||
|
||||
if (m_window == nullptr)
|
||||
return D3D_OK;
|
||||
|
||||
#ifdef _WIN32
|
||||
const bool useGDIFallback = m_partialCopy && !HasFrontBuffer();
|
||||
if (useGDIFallback)
|
||||
|
|
Loading…
Add table
Reference in a new issue