Fix crashes when loading 'image' logs

This commit is contained in:
baldurk
2016-04-14 21:05:40 +02:00
parent e5c9ca59e5
commit 171fbcfabd
3 changed files with 10 additions and 23 deletions
@@ -632,7 +632,7 @@ namespace renderdocui.Windows.PipelineState
else
iaBytecode.Text = state.m_IA.LayoutName;
if (state.m_IA.Bytecode.DebugInfo != null && state.m_IA.Bytecode.DebugInfo.entryFunc.Length > 0)
if (state.m_IA.Bytecode != null && state.m_IA.Bytecode.DebugInfo != null && state.m_IA.Bytecode.DebugInfo.entryFunc.Length > 0)
iaBytecode.Text += " (" + state.m_IA.Bytecode.DebugInfo.entryFunc + ")";
iaBytecodeMismatch.Text = "";