mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 19:03:30 +00:00
Transparency issues when using GLFW on Wayland #3813
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#3813
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version/Branch of Dear ImGui:
Version: v1.81
Branch: master (
4df57136e9)Back-end/Renderer/Compiler/OS
Back-ends: GLFW/OpenGL2 and GLFW/OpenGL3
Compiler: g++ v10.2.1
Operating System: Debian Bullseye (5.10.13 kernel, AMDGPU, Renoir firmware 20.45)
WM: Sway v1.5 (implies Wayland instead of X-Server)
My Issue/Question:
Some UI elements are rendered transparent when this is not expected. The issue can be reproduced with GLFW, but not SDL:
GLFW/OpenGL2:

GLFW/OpenGL2:

SDL/OpenGL3:

imgui-rs (ping @thomcc) is affected as well:

Searching via existing bugs reveals https://github.com/ocornut/imgui/issues/2764, however its author was using Windows.
Standalone, minimal, complete and verifiable example:
N/A, examples are compiled without any changes to the source code.
In imgui_impl_opengl3.cpp, would changing this line:
into
fix it for you?
cc #2766 #3447
Unfortunately no,
makefails with the following:I have opportunistically tried to build from https://github.com/ocornut/imgui/pull/2766 that you have CC'd above, but it refuses to start on Wayland:
You didn't use the right code mentioned above.
Note to self: do not try to patch things late at night...
@ocornut , you are correct. With the

glBlendFuncSeparate()it works perfectly:Created pull request: https://github.com/ocornut/imgui/pull/3816
Hello @savchenko
We've now merged fixes and applied similar changes to multiple backends and examples, see
bda12e5and6a161b8. Some remaining related work will be discussed in #2766As for other Wayland errors if any:
Thank you!