mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-12 15:19:14 +00:00
Fix a crash if a barrier event happens not within a drawcall
This commit is contained in:
1 parent
eb5dc90dac
commit
ebbef4e1aa
1 file changed
+1
-1
@@ -3793,7 +3793,7 @@ namespace renderdocui.Windows
|
||||
|
||||
// if the usage is different from the last, add a new entry,
|
||||
// or if the previous draw link is broken.
|
||||
if (u.usage != us || curDraw.previous == null)
|
||||
if (u.usage != us || curDraw == null || curDraw.previous == null)
|
||||
{
|
||||
distinct = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user