diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 5da3835c..8fb30fb5 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -918,7 +918,7 @@ void SourceView::RenderSimpleSourceView() } RenderLine( line, lineNum++, 0, 0, 0, nullptr ); } - const auto& win = ImGui::GetCurrentWindow(); + const auto win = ImGui::GetCurrentWindowRead(); m_srcWidth = win->DC.CursorMaxPos.x - win->DC.CursorStartPos.x; } else @@ -1416,7 +1416,7 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_mapDC.CursorMaxPos.x - win->DC.CursorStartPos.x; } else @@ -1443,7 +1443,7 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_mapScrollbarY ) { auto draw = ImGui::GetWindowDrawList(); @@ -1689,7 +1689,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_mapDC.CursorMaxPos.x - win->DC.CursorStartPos.x; } else @@ -1859,7 +1859,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_mapScrollbarY ) { auto draw = ImGui::GetWindowDrawList(); diff --git a/server/TracyView.cpp b/server/TracyView.cpp index dce59576..63580b12 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1293,7 +1293,7 @@ void View::DrawFrames() enum { MaxFrameTime = 50 * 1000 * 1000 }; // 50ms - ImGuiWindow* window = ImGui::GetCurrentWindow(); + ImGuiWindow* window = ImGui::GetCurrentWindowRead(); if( window->SkipItems ) return; auto& io = ImGui::GetIO(); @@ -2300,7 +2300,7 @@ void View::DrawZones() if( m_vd.zvStart == m_vd.zvEnd ) return; assert( m_vd.zvStart < m_vd.zvEnd ); - if( ImGui::GetCurrentWindow()->SkipItems ) return; + if( ImGui::GetCurrentWindowRead()->SkipItems ) return; m_gpuThread = 0; m_gpuStart = 0;