-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tthe background color of popup modal is iincorrect grey. #4845
Comments
Are you sure you are using imgui_impl_opengl3.cpp ? If you are using an old or other backend try updating, there was a bug in some old backends. |
@ocornut I'm using the golang version backend, I'll check them line-by-line. Thanks. |
To clarify, this happens if the renderer backend doesn’t honor the IdxOffset field properly and tries to compute it itself. See last version’s fix for GL2 and Allegro backends: c80e8b9 |
@ocornut Thanks for giving me the clue. I got it fixed. |
The comment for // Start offset in index buffer. Always equal to sum of ElemCount drawn so far. Should that be changed then, or am I misinterpreting it? |
You are right, will fix !
|
Manually calculating the index buffer offset isn't correct (despite the comment for IdxOffset indicating otherwise). This surfaced with changes in v1.86 under certain circumstances, e.g. stacked modals. See ocornut/imgui#4845.
Manually calculating the index buffer offset isn't correct (despite the comment for IdxOffset indicating otherwise). This surfaced with changes in v1.86 under certain circumstances, e.g. stacked modals. See ocornut/imgui#4845.
[ImGui] Remove unnecessary allocation in ImGuiRenderer.cs. Fix XML comment in ImGuiRenderer.cs Fix swapped right/middle mouse button detection in ImGuiRenderer. [Vulkan] Respect Shader.EntryPoint when creating a Pipeline. Allow ImGuiRenderer's font texture to be recreated after startup. [ImGui] Dispose previous font-related resources before creating new ones. [ImGui] Remove explicit font TextureView. [ImGui] Add RemoveImGuiBinding for removing cached image bindings. Fix variable naming in ImGuiRenderer. [Vulkan] Reference count more resources. Change ImGui update method fix IdxOffset field (#442) ocornut/imgui#4845
…ow drawing glitch) But still it should fix something (see ocornut/imgui#4845 (comment))
Version/Branch of Dear ImGui:
Version: 1.86
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_opengl3.cpp + imgui_impl_glfw.cpp
My Issue/Question:
Tthe background of popup modal is iincorrect grey. I can repo it with imgui_demo.cpp.
Screenshots/Video
The text was updated successfully, but these errors were encountered: