Reuse existing variable.

This commit is contained in:
Bartosz Taudul 2021-02-10 18:56:07 +01:00
parent 3c3cfe5eea
commit 26a8ec3909

View File

@ -2086,15 +2086,13 @@ Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token )
break; break;
} }
case QueueType::GpuContextName: case QueueType::GpuContextName:
{
ptr = MemRead<uint64_t>( &item->gpuContextNameFat.ptr ); ptr = MemRead<uint64_t>( &item->gpuContextNameFat.ptr );
uint16_t size = MemRead<uint16_t>( &item->gpuContextNameFat.size ); size = MemRead<uint16_t>( &item->gpuContextNameFat.size );
SendSingleString( (const char*)ptr, size ); SendSingleString( (const char*)ptr, size );
#ifndef TRACY_ON_DEMAND #ifndef TRACY_ON_DEMAND
tracy_free( (void*)ptr ); tracy_free( (void*)ptr );
#endif #endif
break; break;
}
case QueueType::PlotData: case QueueType::PlotData:
{ {
int64_t t = MemRead<int64_t>( &item->plotData.time ); int64_t t = MemRead<int64_t>( &item->plotData.time );