This commit is contained in:
Branimir Karadžić 2017-12-28 10:51:04 -08:00
parent 3888bbf59c
commit 25476fc8a2

View File

@ -1337,7 +1337,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
, &m_scd , &m_scd
, &m_swapChain , &m_swapChain
); );
if (FAILED(hr)) if (FAILED(hr) )
{ {
// DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL is not available on win7 // DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL is not available on win7
// Try again with DXGI_SWAP_EFFECT_DISCARD // Try again with DXGI_SWAP_EFFECT_DISCARD
@ -1345,8 +1345,9 @@ BX_PRAGMA_DIAGNOSTIC_POP();
hr = m_factory->CreateSwapChain(m_device hr = m_factory->CreateSwapChain(m_device
, &m_scd , &m_scd
, &m_swapChain , &m_swapChain
); );
} }
DX_CHECK(m_factory->MakeWindowAssociation( (HWND)g_platformData.nwh, 0 DX_CHECK(m_factory->MakeWindowAssociation( (HWND)g_platformData.nwh, 0
| DXGI_MWA_NO_WINDOW_CHANGES | DXGI_MWA_NO_WINDOW_CHANGES
| DXGI_MWA_NO_ALT_ENTER | DXGI_MWA_NO_ALT_ENTER