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:
parent
e8726c72b1
commit
108ba20af8
@ -5150,8 +5150,8 @@ void View::DrawCallstackWindow()
|
|||||||
|
|
||||||
void View::DrawMemoryAllocWindow()
|
void View::DrawMemoryAllocWindow()
|
||||||
{
|
{
|
||||||
bool close;
|
bool show = true;
|
||||||
ImGui::Begin( "Memory allocation", &close );
|
ImGui::Begin( "Memory allocation", &show );
|
||||||
|
|
||||||
const auto& mem = m_worker.GetMemData();
|
const auto& mem = m_worker.GetMemData();
|
||||||
const auto& ev = mem.data[m_memoryAllocInfoWindow];
|
const auto& ev = mem.data[m_memoryAllocInfoWindow];
|
||||||
@ -5253,7 +5253,7 @@ void View::DrawMemoryAllocWindow()
|
|||||||
}
|
}
|
||||||
|
|
||||||
ImGui::End();
|
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>
|
template<class T>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user