1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Fix closing memory allocation info window.

This commit is contained in:
Bartosz Taudul 2018-07-18 00:25:02 +02:00
parent e8726c72b1
commit 108ba20af8

View File

@ -5150,8 +5150,8 @@ void View::DrawCallstackWindow()
void View::DrawMemoryAllocWindow()
{
bool close;
ImGui::Begin( "Memory allocation", &close );
bool show = true;
ImGui::Begin( "Memory allocation", &show );
const auto& mem = m_worker.GetMemData();
const auto& ev = mem.data[m_memoryAllocInfoWindow];
@ -5253,7 +5253,7 @@ void View::DrawMemoryAllocWindow()
}
ImGui::End();
if( !close ) m_memoryAllocInfoWindow = std::numeric_limits<uint64_t>::max();
if( !show ) m_memoryAllocInfoWindow = std::numeric_limits<uint64_t>::max();
}
template<class T>