mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-11 19:24:11 +01:00
[dxgi] unchain DxgiFactory::CreateSwapChain and CreateSwapChainForHwnd
similar to https://github.com/doitsujin/dxvk/pull/3966, avoid chaining so that dxgi tools attempting to wrap swapchains don't end up double wrapping ref: https://github.com/SpecialKO/SpecialK/issues/168
This commit is contained in:
parent
92a43ebf65
commit
aac3396671
@ -230,7 +230,7 @@ namespace dxvk {
|
|||||||
descFs.Windowed = pDesc->Windowed;
|
descFs.Windowed = pDesc->Windowed;
|
||||||
|
|
||||||
IDXGISwapChain1* swapChain = nullptr;
|
IDXGISwapChain1* swapChain = nullptr;
|
||||||
HRESULT hr = CreateSwapChainForHwnd(
|
HRESULT hr = CreateSwapChainForHwndBase(
|
||||||
pDevice, pDesc->OutputWindow,
|
pDevice, pDesc->OutputWindow,
|
||||||
&desc, &descFs, nullptr,
|
&desc, &descFs, nullptr,
|
||||||
&swapChain);
|
&swapChain);
|
||||||
@ -244,6 +244,19 @@ namespace dxvk {
|
|||||||
IUnknown* pDevice,
|
IUnknown* pDevice,
|
||||||
HWND hWnd,
|
HWND hWnd,
|
||||||
const DXGI_SWAP_CHAIN_DESC1* pDesc,
|
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,
|
const DXGI_SWAP_CHAIN_FULLSCREEN_DESC* pFullscreenDesc,
|
||||||
IDXGIOutput* pRestrictToOutput,
|
IDXGIOutput* pRestrictToOutput,
|
||||||
IDXGISwapChain1** ppSwapChain) {
|
IDXGISwapChain1** ppSwapChain) {
|
||||||
|
@ -200,6 +200,14 @@ namespace dxvk {
|
|||||||
UINT m_flags;
|
UINT m_flags;
|
||||||
BOOL m_monitorFallback;
|
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);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user