From 09bce8207873e00ab18d8b6cce662905059cfae5 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 10 Mar 2026 15:20:39 +0000 Subject: [PATCH] Always try to use exception-based thread naming * VS2015 doesn't support the windows 10 thread naming so we want to do both if possible --- qrenderdoc/Code/QRDUtils.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qrenderdoc/Code/QRDUtils.cpp b/qrenderdoc/Code/QRDUtils.cpp index 8525ab7ea..dd947471b 100644 --- a/qrenderdoc/Code/QRDUtils.cpp +++ b/qrenderdoc/Code/QRDUtils.cpp @@ -3563,10 +3563,8 @@ void LambdaThread::windowsSetName() GetModuleHandleA("kernel32.dll"), "SetThreadDescription"); if(setThreadDesc) - { setThreadDesc(GetCurrentThread(), m_Name.toStdWString().c_str()); - } - else + { // don't throw the exception if there's no debugger present if(!IsDebuggerPresent())