[host] dxgi: fix termination due to wait timeout

This commit is contained in:
Geoffrey McRae 2017-12-18 00:10:42 +11:00
parent 4e6c1ea648
commit 49acc6ec0b

View File

@ -255,7 +255,7 @@ GrabStatus DXGI::GrabFrame(FrameInfo & frame)
if (status == DXGI_ERROR_WAIT_TIMEOUT) if (status == DXGI_ERROR_WAIT_TIMEOUT)
{ {
if (!m_surfaceMapped) if (!m_surfaceMapped)
break; continue;
// send the last frame again if we timeout to prevent the client stalling on restart // send the last frame again if we timeout to prevent the client stalling on restart
frame.width = m_desc.Width; frame.width = m_desc.Width;