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

Modal window backround is rendered inside the modal window in front of content #5532

Closed
Grantim opened this issue Aug 1, 2022 · 2 comments
Closed

Comments

@Grantim
Copy link

Grantim commented Aug 1, 2022

Dear ImGui 1.89 WIP (18805)
--------------------------------
sizeof(size_t): 8, sizeof(ImDrawIdx): 4, sizeof(ImDrawVert): 20
define: __cplusplus=199711
define: IMGUI_DISABLE_OBSOLETE_FUNCTIONS
define: _WIN32
define: _WIN64
define: _MSC_VER=1929
define: _MSVC_LANG=202004
--------------------------------
io.BackendPlatformName: imgui_impl_glfw
io.BackendRendererName: imgui_impl_opengl3
io.ConfigFlags: 0x00000000
io.ConfigInputTextCursorBlink
io.ConfigWindowsResizeFromEdges
io.ConfigMemoryCompactTimer = 60.0
io.BackendFlags: 0x00000006
 HasMouseCursors
 HasSetMousePos
--------------------------------
io.Fonts: 5 fonts, Flags: 0x00000000, TexSize: 1024,1024
io.DisplaySize: 2560.00,1369.00
io.DisplayFramebufferScale: 1.00,1.00
--------------------------------
style.WindowPadding: 8.00,8.00
style.WindowBorderSize: 1.00
style.FramePadding: 4.00,5.00
style.FrameRounding: 5.00
style.FrameBorderSize: 1.00
style.ItemSpacing: 8.00,6.00
style.ItemInnerSpacing: 4.00,4.00

Version/Branch of Dear ImGui:

Version: e99c4fc 1.89 WIP (18805)
Branch: master

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler: MSVC
Operating System: Windows 11

My Issue/Question:

Modal popups background is rendered inside modal window in front of modal content.

Screenshots/Video
image
image

Standalone, minimal, complete and verifiable example:

ImGui::ShowDemoWindow(); // "Popups & Modal windows" -> "Modals"
@ocornut
Copy link
Owner

ocornut commented Aug 1, 2022

A bug was fixed in the OpenGL backend in 1.86 see release note:
https://github.com/ocornut/imgui/releases/tag/v1.86

I am assuming you made an old copy of imgui_impl_opengl3 separate from
imgui core files, and haven’t updated it. You simply need to update it when updating dear imgui.

Same as #4845 #4887 #4888 #5406 #5438 and more.

@Grantim
Copy link
Author

Grantim commented Aug 1, 2022

Thank you!

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

2 participants