Fix some uninitialized variables (#2182)

This commit is contained in:
Gary Hsu
2020-06-24 15:44:43 -07:00
committed by GitHub
parent e832eea506
commit 34fbc579ea

View File

@@ -686,6 +686,7 @@ namespace bgfx { namespace d3d11
, m_rtMsaa(false)
, m_timerQuerySupport(false)
, m_directAccessSupport(false)
, m_needPresent(false)
{
m_fbh.idx = kInvalidHandle;
bx::memSet(&m_scd, 0, sizeof(m_scd) );
@@ -989,6 +990,8 @@ namespace bgfx { namespace d3d11
m_nvapi.shutdown();
}
m_msaaRt = NULL;
if (NULL == g_platformData.backBuffer)
{
HRESULT hr = S_OK;
@@ -1029,8 +1032,6 @@ namespace bgfx { namespace d3d11
m_scd.ndt = g_platformData.ndt;
m_scd.windowed = true;
m_msaaRt = NULL;
if (NULL != m_scd.nwh)
{
hr = m_dxgi.createSwapChain(m_device