Prevent a crash when reloading layout, if bufferviewer is destroyed

This commit is contained in:
baldurk committed 2016-07-25 18:27:20 +02:00
1 parent 0ecb7c8a6f
commit b91518a2aa
1 file changed
+4
+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;