Prevent a crash when reloading layout, if bufferviewer is destroyed

This commit is contained in:
baldurk
2016-07-25 17:57:13 +02:00
parent 0ecb7c8a6f
commit b91518a2aa
+4
View File
@@ -482,6 +482,8 @@ namespace renderdocui.Windows
public void OnLogfileClosed()
{
if (IsDisposed) return;
m_Output = null;
ResetConfig();
@@ -603,6 +605,8 @@ namespace renderdocui.Windows
public void OnEventSelected(UInt32 eventID)
{
if (IsDisposed) return;
// ignore OnEventSelected until we've loaded
if (!m_Loaded)
return;