Double check whether invoke is required for SetVariables()

This commit is contained in:
baldurk
2016-09-23 14:08:43 +02:00
parent dbe82f31e6
commit 43a2568f24
@@ -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;