Closed subtle-byte closed 1 year ago
I don't think this is this library's fault. Are you using 1.0
for the alpha in your ClearColor
?
This code is based off of the official Dear ImGui OpenGL backend, and I'm hesitant to depart from what they're doing without a clear understanding that it's the wrong thing.
I just tested your example app and there is no problem.
So maybe the problem is when glutin is used (also I run it with wayland), or there is a problem in my code:
I tested imgui-rs's example (imgui-glium-renderer
+ glium
+ imgui-winit-support
+ winit
) - there is the same problem on Wayland, and no on X11.
Also I've met the same transparency in https://github.com/imgui-rs/imgui-rs/issues/246 's screenshot.
The problem demo:
vscode is visible through the window when imgui's window is semi-transparent.
The #17 fixes this problem.