diff --git a/src/dxgi/dxgi_factory.cpp b/src/dxgi/dxgi_factory.cpp index 314a30b0..877cef19 100644 --- a/src/dxgi/dxgi_factory.cpp +++ b/src/dxgi/dxgi_factory.cpp @@ -407,7 +407,8 @@ namespace dxvk { if (pWindowHandle == nullptr) return DXGI_ERROR_INVALID_CALL; - *pWindowHandle = m_associatedWindow; + // Wine tests show that this is always null for whatever reason + *pWindowHandle = nullptr; return S_OK; } @@ -422,7 +423,6 @@ namespace dxvk { HRESULT STDMETHODCALLTYPE DxgiFactory::MakeWindowAssociation(HWND WindowHandle, UINT Flags) { Logger::warn("DXGI: MakeWindowAssociation: Ignoring flags"); - m_associatedWindow = WindowHandle; return S_OK; } diff --git a/src/dxgi/dxgi_factory.h b/src/dxgi/dxgi_factory.h index 5c65bf49..81b51143 100644 --- a/src/dxgi/dxgi_factory.h +++ b/src/dxgi/dxgi_factory.h @@ -182,9 +182,7 @@ namespace dxvk { DxgiMonitorInfo m_monitorInfo; UINT m_flags; BOOL m_monitorFallback; - - HWND m_associatedWindow = nullptr; - + }; }