D3D11: Disable alt-enter.

This commit is contained in:
Branimir Karadžić 2015-02-22 20:30:17 -08:00
parent 4685fdeca3
commit cc9ed76048

View file

@ -665,6 +665,11 @@ namespace bgfx
#endif // BX_PLATFORM_WINRT #endif // BX_PLATFORM_WINRT
BGFX_FATAL(SUCCEEDED(hr), Fatal::UnableToInitialize, "Failed to create swap chain."); BGFX_FATAL(SUCCEEDED(hr), Fatal::UnableToInitialize, "Failed to create swap chain.");
DX_CHECK(m_factory->MakeWindowAssociation(g_bgfxHwnd, 0
| DXGI_MWA_NO_WINDOW_CHANGES
| DXGI_MWA_NO_ALT_ENTER
) );
m_numWindows = 1; m_numWindows = 1;
if (BX_ENABLED(BGFX_CONFIG_DEBUG) ) if (BX_ENABLED(BGFX_CONFIG_DEBUG) )