Fix faulty ImGui clip rect usage. (#211)

This commit is contained in:
Skyth (Asilkan)
2025-01-27 01:24:05 +03:00
committed by GitHub
parent a5db997e5d
commit a9677084ea
4 changed files with 56 additions and 44 deletions
+2 -1
View File
@@ -2098,8 +2098,9 @@ static void DrawImGui()
ButtonGuide::Draw();
Fader::Draw();
DrawProfiler();
assert(ImGui::GetForegroundDrawList()->_ClipRectStack.Size == 1 && "Some clip rects were not removed from the stack!");
DrawProfiler();
ImGui::Render();
auto drawData = ImGui::GetDrawData();