mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 21:31:36 +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:
1 parent
85a343c24b
commit
9d25afbfa0
1 file changed
+1
-1
@@ -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