[client] egl: create 24-bit colour context

This should prevent the looking-glass-client window from having an alpha
channel. On Wayland, the alpha channel is used to compose the window onto
the desktop, so the wallpaper would bleed through unless set to complete
opaque.

We worked around this by using constant alpha for rendering, but it was
not sustainable. Instead, we should just ask for 24-bit context.
This commit is contained in:
Quantum
2021-01-30 23:56:12 -05:00
committed by Geoffrey McRae
parent 5454053d96
commit 2993f7ae7d
3 changed files with 3 additions and 6 deletions

View File

@@ -518,7 +518,7 @@ bool egl_render_startup(void * opaque)
EGLint attr[] =
{
EGL_BUFFER_SIZE , 32,
EGL_BUFFER_SIZE , 24,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_SAMPLE_BUFFERS , maxSamples > 0 ? 1 : 0,
EGL_SAMPLES , maxSamples,