From cc9ed76048f6b64f1840d654ea0ce5fd59bad0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 22 Feb 2015 20:30:17 -0800 Subject: [PATCH] D3D11: Disable alt-enter. --- src/renderer_d3d11.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index e493932fa..e67eacb9a 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -665,6 +665,11 @@ namespace bgfx #endif // BX_PLATFORM_WINRT 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; if (BX_ENABLED(BGFX_CONFIG_DEBUG) )