mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-07 16:54:14 +01:00
[dxgi] Return success from DxgiSwapChain::Present1() if window is destroyed
This commit is contained in:
parent
1ef4e60b69
commit
24eb875f02
@ -255,8 +255,9 @@ namespace dxvk {
|
|||||||
UINT SyncInterval,
|
UINT SyncInterval,
|
||||||
UINT PresentFlags,
|
UINT PresentFlags,
|
||||||
const DXGI_PRESENT_PARAMETERS* pPresentParameters) {
|
const DXGI_PRESENT_PARAMETERS* pPresentParameters) {
|
||||||
|
|
||||||
if (!IsWindow(m_window))
|
if (!IsWindow(m_window))
|
||||||
return DXGI_ERROR_INVALID_CALL;
|
return S_OK;
|
||||||
|
|
||||||
if (SyncInterval > 4)
|
if (SyncInterval > 4)
|
||||||
return DXGI_ERROR_INVALID_CALL;
|
return DXGI_ERROR_INVALID_CALL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user