From 7bf6bbbb944c3539aefa16fd5c0b02f7553210d4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 20 Nov 2017 02:04:45 +0100 Subject: [PATCH] Use back_and_pop in GPU zone processing. --- server/TracyView.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 6c4029da..b7a085da 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -882,8 +882,7 @@ void View::ProcessGpuZoneEnd( const QueueGpuZoneEnd& ev ) auto ctx = m_gpuData[it->second]; assert( !ctx->stack.empty() ); - auto zone = ctx->stack.back(); - ctx->stack.pop_back(); + auto zone = ctx->stack.back_and_pop(); ctx->queue.push_back( zone ); zone->cpuEnd = ev.cpuTime * m_timerMul;