From 26a8ec39098f724945d44a2347f284252b3936b5 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 10 Feb 2021 18:56:07 +0100 Subject: [PATCH] Reuse existing variable. --- client/TracyProfiler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 38e5ba53..dc21d57a 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -2086,15 +2086,13 @@ Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token ) break; } case QueueType::GpuContextName: - { ptr = MemRead( &item->gpuContextNameFat.ptr ); - uint16_t size = MemRead( &item->gpuContextNameFat.size ); + size = MemRead( &item->gpuContextNameFat.size ); SendSingleString( (const char*)ptr, size ); #ifndef TRACY_ON_DEMAND tracy_free( (void*)ptr ); #endif break; - } case QueueType::PlotData: { int64_t t = MemRead( &item->plotData.time );