mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxgi] Use IWineDXGISwapChainFactory to create DXGI swap chains
This commit is contained in:
parent
5ea8648cd9
commit
7ed91872b6
@ -116,15 +116,14 @@ namespace dxvk {
|
||||
if (!ppSwapChain || !pDesc || !hWnd || !pDevice)
|
||||
return DXGI_ERROR_INVALID_CALL;
|
||||
|
||||
Com<IDXGIVkPresentDevice> dxvkDevice;
|
||||
Com<IWineDXGISwapChainFactory> wineDevice;
|
||||
|
||||
if (SUCCEEDED(pDevice->QueryInterface(
|
||||
__uuidof(IDXGIVkPresentDevice),
|
||||
reinterpret_cast<void**>(&dxvkDevice)))) {
|
||||
return CreateDxvkSwapChainForHwnd(
|
||||
this, dxvkDevice.ptr(), hWnd, pDesc,
|
||||
pFullscreenDesc, pRestrictToOutput,
|
||||
ppSwapChain);
|
||||
__uuidof(IWineDXGISwapChainFactory),
|
||||
reinterpret_cast<void**>(&wineDevice)))) {
|
||||
return wineDevice->CreateSwapChainForHwnd(
|
||||
this, hWnd, pDesc, pFullscreenDesc,
|
||||
pRestrictToOutput, ppSwapChain);
|
||||
}
|
||||
|
||||
Logger::err("DXGI: CreateSwapChainForHwnd: Unsupported device type");
|
||||
|
Loading…
x
Reference in New Issue
Block a user