From 184d3a6789cac9b5889d2b985291d8255a458aba Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 26 Jan 2015 14:27:16 +0000 Subject: [PATCH] Prime post-vs data when log is loaded (or bufferviewer is newly opened) * This fixes the bug that's been around for a while, where if you have an event selected and then open the buffer viewer, it won't have the post vs data available until you re-select that event. --- renderdocui/Windows/BufferViewer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/renderdocui/Windows/BufferViewer.cs b/renderdocui/Windows/BufferViewer.cs index a892a28f8..0496bff5e 100644 --- a/renderdocui/Windows/BufferViewer.cs +++ b/renderdocui/Windows/BufferViewer.cs @@ -445,6 +445,7 @@ namespace renderdocui.Windows m_Output = r.CreateOutput(RenderHandle); m_Output.SetOutputConfig(m_OutConfig); RT_UpdateRenderOutput(r); + m_Output.Display(); // pump the display once, this will fetch postvs data m_VSIn.m_Input = GetCurrentMeshInput(draw, MeshDataStage.VSIn); m_VSOut.m_Input = GetCurrentMeshInput(draw, MeshDataStage.VSOut);