From 5706ec55e48f15a28fb9dcaeae100550cd4a2eed Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 16 Jan 2020 08:27:34 -0600 Subject: [PATCH] [dxgi] Don't check window validity in IDXGISwapchain::GetFullscreenState This causes an error on exit in Jump King, which uses SharpDX. --- src/dxgi/dxgi_swapchain.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/dxgi/dxgi_swapchain.cpp b/src/dxgi/dxgi_swapchain.cpp index 9e21d92ef..dfc9d6d3c 100644 --- a/src/dxgi/dxgi_swapchain.cpp +++ b/src/dxgi/dxgi_swapchain.cpp @@ -182,9 +182,6 @@ namespace dxvk { HRESULT STDMETHODCALLTYPE DxgiSwapChain::GetFullscreenState( BOOL* pFullscreen, IDXGIOutput** ppTarget) { - if (!IsWindow(m_window)) - return DXGI_ERROR_INVALID_CALL; - HRESULT hr = S_OK; if (pFullscreen != nullptr)