diff --git a/src/dxgi/dxgi_factory.cpp b/src/dxgi/dxgi_factory.cpp index fe4943a91c6..dc1c556dd7d 100644 --- a/src/dxgi/dxgi_factory.cpp +++ b/src/dxgi/dxgi_factory.cpp @@ -230,7 +230,7 @@ namespace dxvk { descFs.Windowed = pDesc->Windowed; IDXGISwapChain1* swapChain = nullptr; - HRESULT hr = CreateSwapChainForHwnd( + HRESULT hr = CreateSwapChainForHwndBase( pDevice, pDesc->OutputWindow, &desc, &descFs, nullptr, &swapChain); @@ -244,6 +244,19 @@ namespace dxvk { IUnknown* pDevice, HWND hWnd, const DXGI_SWAP_CHAIN_DESC1* pDesc, + const DXGI_SWAP_CHAIN_FULLSCREEN_DESC* pFullscreenDesc, + IDXGIOutput* pRestrictToOutput, + IDXGISwapChain1** ppSwapChain) { + return CreateSwapChainForHwndBase( + pDevice, hWnd, + pDesc, pFullscreenDesc, pRestrictToOutput, + ppSwapChain); + } + + HRESULT STDMETHODCALLTYPE DxgiFactory::CreateSwapChainForHwndBase( + IUnknown* pDevice, + HWND hWnd, + const DXGI_SWAP_CHAIN_DESC1* pDesc, const DXGI_SWAP_CHAIN_FULLSCREEN_DESC* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) { diff --git a/src/dxgi/dxgi_factory.h b/src/dxgi/dxgi_factory.h index 96a4410cbc3..280b0a84a5a 100644 --- a/src/dxgi/dxgi_factory.h +++ b/src/dxgi/dxgi_factory.h @@ -200,6 +200,14 @@ namespace dxvk { UINT m_flags; BOOL m_monitorFallback; + + HRESULT STDMETHODCALLTYPE CreateSwapChainForHwndBase( + IUnknown* pDevice, + HWND hWnd, + const DXGI_SWAP_CHAIN_DESC1* pDesc, + const DXGI_SWAP_CHAIN_FULLSCREEN_DESC* pFullscreenDesc, + IDXGIOutput* pRestrictToOutput, + IDXGISwapChain1** ppSwapChain); }; }