Fix TRACY_NO_CALLSTACK on Windows.

This commit is contained in:
Bartosz Taudul 2022-12-22 21:17:31 +01:00
parent 6e70b7c20b
commit c12505c19d
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1415,7 +1415,9 @@ void Profiler::SpawnWorkerThreads()
#if defined _WIN32 && !defined TRACY_UWP && !defined TRACY_NO_CRASH_HANDLER #if defined _WIN32 && !defined TRACY_UWP && !defined TRACY_NO_CRASH_HANDLER
s_profilerThreadId = GetThreadId( s_thread->Handle() ); s_profilerThreadId = GetThreadId( s_thread->Handle() );
# ifdef TRACY_HAS_CALLSTACK
s_symbolThreadId = GetThreadId( s_symbolThread->Handle() ); s_symbolThreadId = GetThreadId( s_symbolThread->Handle() );
# endif
m_exceptionHandler = AddVectoredExceptionHandler( 1, CrashFilter ); m_exceptionHandler = AddVectoredExceptionHandler( 1, CrashFilter );
#endif #endif