mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Make buffer viewer more robust to being closed while fetching data
This commit is contained in:
@@ -520,6 +520,8 @@ namespace renderdocui.Windows
|
||||
{
|
||||
m_Core.Renderer.BeginInvoke((ReplayRenderer r) =>
|
||||
{
|
||||
if (IsDisposed) return;
|
||||
|
||||
m_Output = r.CreateOutput(RenderHandle, OutputType.MeshDisplay);
|
||||
m_Output.SetOutputConfig(m_OutConfig);
|
||||
RT_UpdateRenderOutput(r);
|
||||
@@ -695,6 +697,7 @@ namespace renderdocui.Windows
|
||||
{
|
||||
get
|
||||
{
|
||||
if (IsDisposed) return 0;
|
||||
uint offs = 0;
|
||||
uint.TryParse(byteOffset.Text, out offs);
|
||||
return offs;
|
||||
@@ -752,10 +755,14 @@ namespace renderdocui.Windows
|
||||
|
||||
m_Core.Renderer.BeginInvoke((ReplayRenderer r) =>
|
||||
{
|
||||
if (IsDisposed) return;
|
||||
|
||||
var contents = RT_FetchBufferContents(MeshDataStage.VSIn, r, input);
|
||||
|
||||
this.BeginInvoke(new Action(() =>
|
||||
{
|
||||
if (IsDisposed) return;
|
||||
|
||||
UI_SetRowsData(MeshDataStage.VSIn, contents, 0);
|
||||
UI_SetColumns(MeshDataStage.VSIn, input.BufferFormats);
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user