diff --git a/src/dxgi/dxgi_factory.cpp b/src/dxgi/dxgi_factory.cpp index 39bf5704..43c0b043 100644 --- a/src/dxgi/dxgi_factory.cpp +++ b/src/dxgi/dxgi_factory.cpp @@ -116,15 +116,14 @@ namespace dxvk { if (!ppSwapChain || !pDesc || !hWnd || !pDevice) return DXGI_ERROR_INVALID_CALL; - Com dxvkDevice; + Com wineDevice; if (SUCCEEDED(pDevice->QueryInterface( - __uuidof(IDXGIVkPresentDevice), - reinterpret_cast(&dxvkDevice)))) { - return CreateDxvkSwapChainForHwnd( - this, dxvkDevice.ptr(), hWnd, pDesc, - pFullscreenDesc, pRestrictToOutput, - ppSwapChain); + __uuidof(IWineDXGISwapChainFactory), + reinterpret_cast(&wineDevice)))) { + return wineDevice->CreateSwapChainForHwnd( + this, hWnd, pDesc, pFullscreenDesc, + pRestrictToOutput, ppSwapChain); } Logger::err("DXGI: CreateSwapChainForHwnd: Unsupported device type");