clients/simple-egl: Allow translucent 16-bit surfaces

This allows users to get r5g5b5a1 configs which currently (in Mesa) interact
badly with EGL_EXT_present_opaque, and act as a good test case for the EGL
implementation.

Users can still get a 16-bit surface without alpha by using the "-o" flag.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
This commit is contained in:
Alexandros Frantzis 2024-05-14 15:01:25 +03:00 committed by Marius Vlad
parent e59eca5187
commit 8988c9436b

View File

@ -198,7 +198,7 @@ init_egl(struct display *display, struct window *window)
EGLBoolean ret;
int r, g, b, a;
if (window->opaque || window->buffer_bpp == 16)
if (window->opaque)
config_attribs[9] = 0;
display->egl.dpy =