mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-07 14:35:48 +00:00
[Coverity] Don't dereference draw if it may be null
This commit is contained in:
1 parent
5f6884c6b9
commit
9c15dfc6c9
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user