[Coverity] Don't dereference draw if it may be null

This commit is contained in:
baldurk
2016-05-13 23:46:44 +02:00
parent 5f6884c6b9
commit 9c15dfc6c9
+1 -1
View File
@@ -813,7 +813,7 @@ namespace renderdocui.Windows
Input ret = new Input();
ret.Drawcall = draw;
ret.Topology = draw.topology;
ret.Topology = draw != null ? draw.topology : PrimitiveTopology.Unknown;
ResourceId ibuffer = ResourceId.Null;
ulong ioffset = 0;