From a6b54e33fd978512e4078e9f029cc667bceb7819 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 29 Aug 2016 19:42:09 +0200 Subject: [PATCH] Don't auto-open a solo capture if we're not remote context'd to the host --- renderdocui/Windows/Dialogs/LiveCapture.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/renderdocui/Windows/Dialogs/LiveCapture.cs b/renderdocui/Windows/Dialogs/LiveCapture.cs index c2f9c9772..616996527 100644 --- a/renderdocui/Windows/Dialogs/LiveCapture.cs +++ b/renderdocui/Windows/Dialogs/LiveCapture.cs @@ -658,6 +658,16 @@ namespace renderdocui.Windows { var log = captures.Items[0].Tag as CaptureLog; + // only auto-open a non-local log if we are successfully connected + // to this machine as a remote context + if (!log.local) + { + if (m_Core.Renderer.Remote == null || + m_Host != m_Core.Renderer.Remote.Hostname || + !m_Core.Renderer.Remote.Connected) + return; + } + if (log.opened) return;