mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-14 10:36:43 +00:00
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
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user