From 26f223e4cdfe8e7e87bffc7635d4c0b69e6c6fbf Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 16 Jun 2019 00:25:22 +0200 Subject: [PATCH] Don't shrink histogram bin buffers. --- server/TracyView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index db345e8b..495e8500 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6245,7 +6245,7 @@ void View::DrawFindZone() const auto numBins = int64_t( w - 4 ); if( numBins > 1 ) { - if( numBins != m_findZone.numBins ) + if( numBins > m_findZone.numBins ) { m_findZone.numBins = numBins; m_findZone.bins = std::make_unique( numBins ); @@ -7461,7 +7461,7 @@ void View::DrawCompare() const auto numBins = int64_t( w - 4 ); if( numBins > 1 ) { - if( numBins != m_compare.numBins ) + if( numBins > m_compare.numBins ) { m_compare.numBins = numBins; m_compare.bins = std::make_unique( numBins ); @@ -8526,7 +8526,7 @@ void View::DrawInfo() const auto numBins = int64_t( w - 4 ); if( numBins > 1 ) { - if( numBins != m_frameSortData.numBins ) + if( numBins > m_frameSortData.numBins ) { m_frameSortData.numBins = numBins; m_frameSortData.bins = std::make_unique( numBins );