mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Change OnEventSelected callbacks to be blocking invoke
* Fixes a race condition you could hit running from e.g. Python or some other non-UI thread.
This commit is contained in:
@@ -851,7 +851,7 @@ namespace renderdocui.Code
|
||||
|
||||
Control c = (Control)logviewer;
|
||||
if (c.InvokeRequired)
|
||||
c.BeginInvoke(new Action(() => logviewer.OnEventSelected(frameID, eventID)));
|
||||
c.Invoke(new Action(() => logviewer.OnEventSelected(frameID, eventID)));
|
||||
else
|
||||
logviewer.OnEventSelected(frameID, eventID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user