mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Don't shrink histogram bin buffers.
This commit is contained in:
parent
f7a590de98
commit
26f223e4cd
@ -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<int64_t[]>( 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<CompVal[]>( 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<int64_t[]>( numBins );
|
||||
|
Loading…
Reference in New Issue
Block a user