From 20074e64f4c7878c8df495715d66a44761dd1c88 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 10 Oct 2021 14:43:36 +0200 Subject: [PATCH] Fix processing of serialized zone color, value and validation. --- client/TracyProfiler.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 30dfa109..b3a15dd9 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -2428,6 +2428,17 @@ Profiler::DequeueStatus Profiler::DequeueSerial() tracy_free_fast( (void*)ptr ); break; } +#endif + default: + assert( false ); + break; + } + } +#ifdef TRACY_FIBERS + else + { + switch( (QueueType)idx ) + { case QueueType::ZoneColor: { ThreadCtxCheckSerial( zoneColorThread ); @@ -2443,12 +2454,11 @@ Profiler::DequeueStatus Profiler::DequeueSerial() ThreadCtxCheckSerial( zoneValidationThread ); break; } -#endif default: - assert( false ); break; } } +#endif if( !AppendData( item, QueueDataSize[idx] ) ) return DequeueStatus::ConnectionLost; item++; }