mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-04 07:24:15 +01:00
[dxgi] Fix behavior of GetWindowAssociation
This commit is contained in:
parent
dfcd7aedd8
commit
429555a540
@ -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;
|
||||
}
|
||||
|
||||
|
@ -182,9 +182,7 @@ namespace dxvk {
|
||||
DxgiMonitorInfo m_monitorInfo;
|
||||
UINT m_flags;
|
||||
BOOL m_monitorFallback;
|
||||
|
||||
HWND m_associatedWindow = nullptr;
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user