Crash fix for if the GL pipeline state is empty (e.g. a D3D11 log)

This commit is contained in:
baldurk
2015-01-16 14:02:14 +00:00
parent 035eecfb1e
commit e13f4b61d4
@@ -819,6 +819,7 @@ namespace renderdocui.Windows.PipelineState
}
// handle the last batch (the loop above leaves the last batch un-added)
if(prev < state.m_RS.Viewports.Length)
{
var v1 = state.m_RS.Viewports[prev];
@@ -873,6 +874,7 @@ namespace renderdocui.Windows.PipelineState
}
// handle the last batch (the loop above leaves the last batch un-added)
if (prev < state.m_RS.Scissors.Length)
{
var s1 = state.m_RS.Scissors[prev];
@@ -1048,6 +1050,7 @@ namespace renderdocui.Windows.PipelineState
vs = blendOperations.VScrollValue();
blendOperations.BeginUpdate();
blendOperations.Nodes.Clear();
if(state.m_FB.m_BlendState.Blends.Length > 0)
{
bool logic = (state.m_FB.m_BlendState.Blends[0].LogicOp != "");