mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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)
|
if (!ppSwapChain || !pDesc || !hWnd || !pDevice)
|
||||||
return DXGI_ERROR_INVALID_CALL;
|
return DXGI_ERROR_INVALID_CALL;
|
||||||
|
|
||||||
Com<IDXGIVkPresentDevice> dxvkDevice;
|
Com<IWineDXGISwapChainFactory> wineDevice;
|
||||||
|
|
||||||
if (SUCCEEDED(pDevice->QueryInterface(
|
if (SUCCEEDED(pDevice->QueryInterface(
|
||||||
__uuidof(IDXGIVkPresentDevice),
|
__uuidof(IWineDXGISwapChainFactory),
|
||||||
reinterpret_cast<void**>(&dxvkDevice)))) {
|
reinterpret_cast<void**>(&wineDevice)))) {
|
||||||
return CreateDxvkSwapChainForHwnd(
|
return wineDevice->CreateSwapChainForHwnd(
|
||||||
this, dxvkDevice.ptr(), hWnd, pDesc,
|
this, hWnd, pDesc, pFullscreenDesc,
|
||||||
pFullscreenDesc, pRestrictToOutput,
|
pRestrictToOutput, ppSwapChain);
|
||||||
ppSwapChain);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger::err("DXGI: CreateSwapChainForHwnd: Unsupported device type");
|
Logger::err("DXGI: CreateSwapChainForHwnd: Unsupported device type");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user