Prevent DXGI from making changes to the window.

Prevents DXGI from responding to Alt+Enter and messing up our fullscreen handling.
This commit is contained in:
Jules Blok 2014-06-17 11:15:56 +02:00
parent 8d76dca30d
commit c323b386ae
1 changed files with 4 additions and 0 deletions

View File

@ -308,6 +308,10 @@ HRESULT Create(HWND wnd)
SAFE_RELEASE(swapchain);
return E_FAIL;
}
hr = factory->MakeWindowAssociation(wnd, DXGI_MWA_NO_WINDOW_CHANGES);
if (FAILED(hr)) MessageBox(wnd, _T("Failed to associate the window"), _T("Dolphin Direct3D 11 backend"), MB_OK | MB_ICONERROR);
SetDebugObjectName((ID3D11DeviceChild*)context, "device context");
SAFE_RELEASE(factory);
SAFE_RELEASE(output);