From 1c306fb155c814ca616e6eccf8d0f0390f3b50d7 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 10 Oct 2014 20:54:24 +0100 Subject: [PATCH] Make sure public function is properly invoked :) --- renderdocui/Windows/TextureViewer.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/renderdocui/Windows/TextureViewer.cs b/renderdocui/Windows/TextureViewer.cs index 520802775..ba7007af8 100644 --- a/renderdocui/Windows/TextureViewer.cs +++ b/renderdocui/Windows/TextureViewer.cs @@ -421,6 +421,12 @@ namespace renderdocui.Windows public void ViewTexture(ResourceId ID, bool focus) { + if (this.InvokeRequired) + { + this.BeginInvoke(new Action(() => { this.ViewTexture(ID, focus); })); + return; + } + TextureViewer_Load(null, null); if (lockedTabs.ContainsKey(ID))