From 75590986ee5a013ad7900437236917911f5a5b57 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 24 Jun 2016 15:35:17 +0200 Subject: [PATCH] Fix potential crash with TreeListView.InvokeRequired not being right --- renderdocui/Windows/Dialogs/ConstantBufferPreviewer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;