|
|
On 20/4/24 07:46, Manolo wrote:
I see no way that libdecor can mess up OpenGL drawing. Are you mixing
headers and shared libs of distinct builds?
No. It is a bug, but not with libdecor. The screen should be cleared,
but currently it isn't.
In my program, I call:
float r = 0.F, g = 0.F, b = 0.F, a = 0.F;
glViewport(0, 0, pixel_w(), pixel_h());
glClearStencil(0);
glClearColor(r, g, b, a);
glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
The alpha channel is intentionally set as 0, so that transparency can be
grabbed properly. On Wayland, under FLTK at least, this messes it up,
as it lets the background go through. Setting the alpha to 1 fixes it,
but that screws up capturing the OpenGL transparency with a
glReadPixel() and similar. Not sure if it is an FLTK problem or a
Wayland problem. But it is a bug.
--
Gonzalo Garramuño
ggarra13@gmail.com
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/3e1d2b25-22e3-4716-abad-a0e528e8e9ed%40gmail.com.
[ Direct Link to Message ] | |
|
| |