Fix a crash if a barrier event happens not within a drawcall

This commit is contained in:
baldurk
2016-09-10 12:54:43 +02:00
parent eb5dc90dac
commit ebbef4e1aa
+1 -1
View File
@@ -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;
}