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

Tthe background color of popup modal is iincorrect grey. #4845

Closed
AllenDang opened this issue Dec 31, 2021 · 6 comments
Closed

Tthe background color of popup modal is iincorrect grey. #4845

AllenDang opened this issue Dec 31, 2021 · 6 comments

Comments

@AllenDang
Copy link

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

bug

@ocornut
Copy link
Owner

ocornut commented Dec 31, 2021

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.

@AllenDang
Copy link
Author

@ocornut I'm using the golang version backend, I'll check them line-by-line. Thanks.

@ocornut
Copy link
Owner

ocornut commented Dec 31, 2021

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

@AllenDang
Copy link
Author

@ocornut Thanks for giving me the clue. I got it fixed.

@pezcode
Copy link

pezcode commented Jan 5, 2022

To clarify, this happens if the renderer backend doesn’t honor the IdxOffset field properly and tries to compute it itself.

The comment for IdxOffset still says:

// Start offset in index buffer. Always equal to sum of ElemCount drawn so far.

Should that be changed then, or am I misinterpreting it?

@ocornut
Copy link
Owner

ocornut commented Jan 5, 2022 via email

pezcode added a commit to pezcode/magnum-integration that referenced this issue Jan 12, 2022
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.
mosra pushed a commit to mosra/magnum-integration that referenced this issue Jan 31, 2022
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.
mellinoe pushed a commit to veldrid/veldrid that referenced this issue Mar 16, 2022
ThiconZ added a commit to themeldingwars/ImTool that referenced this issue Apr 5, 2022
[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
azeno added a commit to vvvv/VL.ImGui that referenced this issue Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants