Fixes to ensure postvs data is available & properly used

This commit is contained in:
baldurk
2015-01-25 16:59:42 +00:00
parent 177c5cdfc1
commit 44f498de0d
+6 -6
View File
@@ -567,15 +567,10 @@ namespace renderdocui.Windows
if (curReq != m_ReqID)
return;
if (MeshView)
UI_UpdateMeshRenderComponents();
m_VSIn.AbortThread();
m_VSOut.AbortThread();
m_GSOut.AbortThread();
UI_SetAllColumns();
if (m_VSIn.m_Input != null)
UI_SetRowsData(MeshDataStage.VSIn, contentsVSIn, horizscroll[0]);
if (m_VSOut.m_Input != null)
@@ -583,6 +578,11 @@ namespace renderdocui.Windows
if (m_GSOut.m_Input != null)
UI_SetRowsData(MeshDataStage.GSOut, contentsGSOut, horizscroll[2]);
if (MeshView)
UI_UpdateMeshRenderComponents();
UI_SetAllColumns();
camGuess_PropChanged();
render.Invalidate();
@@ -2271,7 +2271,7 @@ namespace renderdocui.Windows
else if (ui.m_Stage != MeshDataStage.VSIn && ui.m_Data != null && ui.m_Data.PostVS.buf != ResourceId.Null)
{
m_MeshDisplay.position.idxbuf = ui.m_Data.PostVS.idxbuf;
m_MeshDisplay.position.idxoffs = ui.m_Input.Drawcall.indexOffset * ui.m_Data.PostVS.idxByteWidth;
m_MeshDisplay.position.idxoffs = 0;
m_MeshDisplay.position.idxByteWidth = ui.m_Data.PostVS.idxByteWidth;
m_MeshDisplay.position.buf = ui.m_Data.PostVS.buf;