mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
[Coverity] Don't dereference draw if it may be null
This commit is contained in:
@@ -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