You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using the ImGuiFileDialog, where one of the possible ways to create a FileDialog is through access of a Singleton that (among other things) holds an instance of an ImGuiListClipper. However, the ImGuiListClipper instance holds it's own ImGuiContext which is (as far as I can tell) only set once to the current context in the Begin() method and never updated again during the lifetime of the clipper. My project unfortunately switches between multiple ImGuiContexts which invalidates the internal clipper context.
This made me wonder why doesn't the ImGuiListClipper refer to the global GImGui context?
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered:
For now please clear it with clipper->Ctx = NULL.
I envision that we will rework this API at some point anyhow, making imgui owns the instance so it won't be a problem.
Let me know if you have other questions!
Version/Branch of Dear ImGui:
Version 1.90, Branch: master
Back-ends:
imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler, OS:
Windows 11 + VS2022
Full config/build information:
No response
Details:
My Question:
I'm currently using the ImGuiFileDialog, where one of the possible ways to create a FileDialog is through access of a Singleton that (among other things) holds an instance of an ImGuiListClipper. However, the ImGuiListClipper instance holds it's own ImGuiContext which is (as far as I can tell) only set once to the current context in the Begin() method and never updated again during the lifetime of the clipper. My project unfortunately switches between multiple ImGuiContexts which invalidates the internal clipper context.
This made me wonder why doesn't the ImGuiListClipper refer to the global GImGui context?
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered: