Skip to content
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

DearIMGUI: support for 32-bit indices #2772

Open
ohlidalp opened this issue Feb 5, 2023 · 1 comment
Open

DearIMGUI: support for 32-bit indices #2772

ohlidalp opened this issue Feb 5, 2023 · 1 comment
Labels
incomplete essential information is missing to reproduce this

Comments

@ohlidalp
Copy link
Contributor

ohlidalp commented Feb 5, 2023

Hello,
I'd like to ask for a build option which would enable using 32-bit indices with DearIMGUI.

By default DearIMGUI uses 16-bit indices and uses assert() to check the buffer size. Enabling 32-bit indices is a 2-step process:

@paroj
Copy link
Member

paroj commented Feb 5, 2023

which asserts do you run into with 16bit indices?

you are likely using the ImDrawList API to get there? Can you show some code that triggers the assert?

also, would implementing ImDrawListFlags_AllowVtxOffset help? ocornut/imgui#2591

@paroj paroj added the incomplete essential information is missing to reproduce this label Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete essential information is missing to reproduce this
Projects
None yet
Development

No branches or pull requests

2 participants