mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Fix a crash if capture viewers are changed while processing SetEvent
* This could happen in particular now that thumbnails are capture viewers.
This commit is contained in:
@@ -1591,9 +1591,11 @@ void CaptureContext::RefreshUIStatus(const rdcarray<ICaptureViewer *> &exclude,
|
||||
PointerTypeRegistry::CacheShader(refl);
|
||||
}
|
||||
|
||||
for(ICaptureViewer *viewer : m_CaptureViewers)
|
||||
rdcarray<ICaptureViewer *> capviewers(m_CaptureViewers);
|
||||
|
||||
for(ICaptureViewer *viewer : capviewers)
|
||||
{
|
||||
if(exclude.contains(viewer))
|
||||
if(!viewer || exclude.contains(viewer) || !m_CaptureViewers.contains(viewer))
|
||||
continue;
|
||||
|
||||
if(updateSelectedEvent)
|
||||
|
||||
Reference in New Issue
Block a user