mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Fix crashes if drawcall list goes away when log is closed
This commit is contained in:
@@ -138,7 +138,7 @@ public:
|
||||
const QList<PixelModification> &mods = getMods(parent);
|
||||
const DrawcallDescription *draw = m_Ctx.GetDrawcall(mods.front().eventID);
|
||||
|
||||
if(draw->flags & DrawFlags::Clear)
|
||||
if(draw && draw->flags & DrawFlags::Clear)
|
||||
return 0;
|
||||
|
||||
return mods.count();
|
||||
|
||||
Reference in New Issue
Block a user