mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Double check whether invoke is required for SetVariables()
This commit is contained in:
@@ -161,7 +161,7 @@ namespace renderdocui.Controls
|
||||
|
||||
private void SetVariables(ShaderVariable[] vars)
|
||||
{
|
||||
if (this.InvokeRequired)
|
||||
if (this.InvokeRequired || variables.InvokeRequired)
|
||||
{
|
||||
this.BeginInvoke(new Action(() => { SetVariables(vars); }));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user