-
-
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
Opening a modal causues incorrect TotalVtx/IdxCount #6716
Comments
Thank you. Confirmed as a bug. This is due to |
I have pushed a fix f422e78 |
ocornut
added a commit
that referenced
this issue
Aug 14, 2023
ocornut
added a commit
to ocornut/imgui_test_engine
that referenced
this issue
Aug 15, 2023
Would consider expanding to check e.g. indices boundary but then if may not be enabled by default in test suite. Ref ocornut/imgui#6716
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version/Branch of Dear ImGui:
Version: 1.89.9 WIP (18982)
Branch: docking (unable to reproduce on master)
Back-end/Renderer/Compiler/OS
Back-ends: Multiple (tested on custom, imgui_impl_dx11.cpp & imgui_impl_opengl3.cpp)
Compiler: MSVC
Operating System: Windows 10
My Issue/Question:
When opening a modal on recent docking branch (upgrading from 1.89.4), the sum of vertex/index buffer counts across all draw lists becomes greater than TotalVtx/IdxCount. A backend that uses these values directly for buffer copying will have graphical corruption (I noticed this due to missing modal backgrounds)
Standalone, minimal, complete and verifiable example:
Add the following code to any ImGui_ImplXXX_RenderDrawData
Open any modal (e.g Demo -> Popups & Modal Windows -> Modals -> Delete)
Observe that the reported total (left part of pair) becomes less than the actual sum (right part of pair)
The text was updated successfully, but these errors were encountered: