(d3d11) Disable DXGI's ALT+ENTER handling

This commit is contained in:
Connor McLaughlin 2021-06-22 13:44:09 +10:00
parent 5d3719df44
commit 9afa30af5e

View File

@ -766,8 +766,19 @@ static bool d3d11_init_swapchain(d3d11_video_t* d3d11,
&desc, (IDXGISwapChain**)&d3d11->swapChain)))
return false;
}
#ifdef HAVE_WINDOW
/* Don't let DXGI mess with the full screen state, because otherwise we end up with a mismatch
* between the window size and the buffers. RetroArch only uses windowed mode (see above). */
if (FAILED(dxgiFactory->lpVtbl->MakeWindowAssociation(dxgiFactory, desc.OutputWindow,
DXGI_MWA_NO_ALT_ENTER)))
{
RARCH_ERR("[D3D11]: Failed to make disable DXGI ALT+ENTER handling.\n");
}
#endif
#endif // __WINRT__
dxgiFactory->lpVtbl->Release(dxgiFactory);
adapter->lpVtbl->Release(adapter);
dxgiDevice->lpVtbl->Release(dxgiDevice);