Fixed issue #1483.

This commit is contained in:
Branimir Karadžić
2018-09-08 22:25:32 -07:00
parent 83844cdcc8
commit 1011696535

View File

@@ -1018,16 +1018,20 @@ namespace bgfx { namespace d3d11
, m_scd
, &m_swapChain
);
}
else
{
m_resolution = _init.resolution;
m_resolution.reset = _init.resolution.reset & (~BGFX_RESET_INTERNAL_FORCE);
m_textVideoMem.resize(false, _init.resolution.width, _init.resolution.height);
m_textVideoMem.clear();
if (FAILED(hr) )
{
BX_TRACE("Init error: Failed to create swap chain.");
goto error;
}
}
m_resolution = _init.resolution;
m_resolution.reset = _init.resolution.reset & (~BGFX_RESET_INTERNAL_FORCE);
m_textVideoMem.resize(false, _init.resolution.width, _init.resolution.height);
m_textVideoMem.clear();
if (1 < m_scd.sampleDesc.Count)
{
D3D11_TEXTURE2D_DESC desc;