mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-20 11:01:08 +00:00
Prevent a crash when reloading layout, if bufferviewer is destroyed
This commit is contained in:
1 parent
0ecb7c8a6f
commit
b91518a2aa
1 file changed
+4
@@ -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