Fix processing of serialized zone color, value and validation.

This commit is contained in:
Bartosz Taudul 2021-10-10 14:43:36 +02:00
parent d3905bd4bb
commit 20074e64f4
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -2428,6 +2428,17 @@ Profiler::DequeueStatus Profiler::DequeueSerial()
tracy_free_fast( (void*)ptr ); tracy_free_fast( (void*)ptr );
break; break;
} }
#endif
default:
assert( false );
break;
}
}
#ifdef TRACY_FIBERS
else
{
switch( (QueueType)idx )
{
case QueueType::ZoneColor: case QueueType::ZoneColor:
{ {
ThreadCtxCheckSerial( zoneColorThread ); ThreadCtxCheckSerial( zoneColorThread );
@ -2443,12 +2454,11 @@ Profiler::DequeueStatus Profiler::DequeueSerial()
ThreadCtxCheckSerial( zoneValidationThread ); ThreadCtxCheckSerial( zoneValidationThread );
break; break;
} }
#endif
default: default:
assert( false );
break; break;
} }
} }
#endif
if( !AppendData( item, QueueDataSize[idx] ) ) return DequeueStatus::ConnectionLost; if( !AppendData( item, QueueDataSize[idx] ) ) return DequeueStatus::ConnectionLost;
item++; item++;
} }