mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Prevent a crash when reloading layout, if bufferviewer is destroyed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user