Clipper: always pulls current context on ImGuiListClipper::Begin(). (#9324, #5856)

Marked Ctx as internal in the comments.
This commit is contained in:
ocornut
2026-03-30 12:53:30 +02:00
parent bd3c925680
commit 97075fae4b
3 changed files with 5 additions and 4 deletions

View File

@@ -3270,8 +3270,7 @@ ImGuiListClipper::~ImGuiListClipper()
void ImGuiListClipper::Begin(int items_count, float items_height)
{
if (Ctx == NULL)
Ctx = ImGui::GetCurrentContext();
Ctx = ImGui::GetCurrentContext();
ImGuiContext& g = *Ctx;
ImGuiWindow* window = g.CurrentWindow;