From 4bc2e4ec107d2039403aea6de47a6b81b66696d7 Mon Sep 17 00:00:00 2001 From: Mike Popoloski Date: Thu, 16 Apr 2015 21:46:52 -0400 Subject: [PATCH] This MakeWindowAssociation block got moved to the wrong branch of #if. --- src/renderer_d3d11.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index c6d018ae..4bd68853 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -685,11 +685,6 @@ BX_PRAGMA_DIAGNOSTIC_POP(); , &m_swapChain ); 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 - ) ); #else hr = adapter->GetParent(IID_IDXGIFactory, (void**)&m_factory); BGFX_FATAL(SUCCEEDED(hr), Fatal::UnableToInitialize, "Unable to create Direct3D11 device."); @@ -713,6 +708,11 @@ BX_PRAGMA_DIAGNOSTIC_POP(); , &m_swapChain ); 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 + ) ); #endif // BX_PLATFORM_WINRT m_numWindows = 1;