Add fatal (device lost/out of memory) error checking to backends

* We check for errors to try to catch them as soon as possible, and early-out
  return even in the middle of functions. The idea being even if this leaves us
  in a weird state we won't get called again as the replay controller will
  detect the error and substitute out a dummy driver.
This commit is contained in:
baldurk
2021-08-18 20:12:07 +01:00
parent 620e75c2a1
commit cab76389c7
64 changed files with 1438 additions and 496 deletions
+2
View File
@@ -608,6 +608,8 @@ void ReplayOutput::Display()
if(m_pDevice->CheckResizeOutputWindow(m_Thumbnails[i].outputID))
m_Thumbnails[i].dirty = true;
m_pController->FatalErrorCheck();
if(m_MainOutput.dirty)
{
m_MainOutput.dirty = false;