1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 05:52:11 +01:00

[dxgi] Return success from DxgiSwapChain::Present1() if window is destroyed

This commit is contained in:
Paul Gofman 2021-10-07 04:26:38 +03:00 committed by Philip Rebohle
parent 1ef4e60b69
commit 24eb875f02

View File

@ -255,8 +255,9 @@ namespace dxvk {
UINT SyncInterval,
UINT PresentFlags,
const DXGI_PRESENT_PARAMETERS* pPresentParameters) {
if (!IsWindow(m_window))
return DXGI_ERROR_INVALID_CALL;
return S_OK;
if (SyncInterval > 4)
return DXGI_ERROR_INVALID_CALL;