From bb75e214d616e40780434f54927ca5891e67413b Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Mon, 16 Jan 2023 02:38:09 +0000 Subject: [PATCH] [dxgi] Store top-level DxgiFactory in DxgiSwapChain Can do this now that we tossed the old stuff that depended on the swapchain factory being resident in D3D11. --- src/dxgi/dxgi_swapchain.cpp | 2 +- src/dxgi/dxgi_swapchain.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dxgi/dxgi_swapchain.cpp b/src/dxgi/dxgi_swapchain.cpp index 684c7304..3f41df68 100644 --- a/src/dxgi/dxgi_swapchain.cpp +++ b/src/dxgi/dxgi_swapchain.cpp @@ -7,7 +7,7 @@ namespace dxvk { DxgiSwapChain::DxgiSwapChain( - IDXGIFactory* pFactory, + DxgiFactory* pFactory, IDXGIVkSwapChain* pPresenter, HWND hWnd, const DXGI_SWAP_CHAIN_DESC1* pDesc, diff --git a/src/dxgi/dxgi_swapchain.h b/src/dxgi/dxgi_swapchain.h index 6aaa6892..c32c2c79 100644 --- a/src/dxgi/dxgi_swapchain.h +++ b/src/dxgi/dxgi_swapchain.h @@ -27,7 +27,7 @@ namespace dxvk { public: DxgiSwapChain( - IDXGIFactory* pFactory, + DxgiFactory* pFactory, IDXGIVkSwapChain* pPresenter, HWND hWnd, const DXGI_SWAP_CHAIN_DESC1* pDesc, @@ -175,7 +175,7 @@ namespace dxvk { dxvk::recursive_mutex m_lockWindow; dxvk::mutex m_lockBuffer; - Com m_factory; + Com m_factory; Com m_adapter; Com m_target; Com m_monitorInfo;