mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fixed issue #1483.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user