diff --git a/renderdocui/Windows/Dialogs/ConstantBufferPreviewer.cs b/renderdocui/Windows/Dialogs/ConstantBufferPreviewer.cs index c404f0c9c..df897cd17 100644 --- a/renderdocui/Windows/Dialogs/ConstantBufferPreviewer.cs +++ b/renderdocui/Windows/Dialogs/ConstantBufferPreviewer.cs @@ -158,7 +158,7 @@ namespace renderdocui.Controls private void SetVariables(ShaderVariable[] vars) { - if (variables.InvokeRequired) + if (this.InvokeRequired) { this.BeginInvoke(new Action(() => { SetVariables(vars); })); return;