mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user