From bf1896f6ba29ca2db374a1af2194298a706fcba1 Mon Sep 17 00:00:00 2001 From: Ashley Ruglys Date: Wed, 17 Nov 2021 18:14:57 +0100 Subject: [PATCH] memset the thread to 0 when writing the GpuZoneEnd as this seems to prevent an assert failure --- client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 9e738452..a0238e24 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -3996,7 +3996,7 @@ TRACY_API void ___tracy_emit_gpu_zone_end( const struct ___tracy_gpu_zone_end_da { TracyLfqPrepareC( tracy::QueueType::GpuZoneEnd ); tracy::MemWrite( &item->gpuZoneEnd.cpuTime, tracy::Profiler::GetTime() ); - tracy::MemWrite( &item->gpuNewContext.thread, tracy::GetThreadHandle() ); + memset( &item->gpuZoneEnd.thread, 0, sizeof( item->gpuZoneEnd.thread ) ); tracy::MemWrite( &item->gpuZoneEnd.queryId, data.queryId ); tracy::MemWrite( &item->gpuZoneEnd.context, data.context ); TracyLfqCommitC;