From 8988c9436bb28571395274bb3e00a604f7f3db49 Mon Sep 17 00:00:00 2001 From: Alexandros Frantzis Date: Tue, 14 May 2024 15:01:25 +0300 Subject: [PATCH] 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 --- clients/simple-egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/simple-egl.c b/clients/simple-egl.c index ec73974ce..e1d674244 100644 --- a/clients/simple-egl.c +++ b/clients/simple-egl.c @@ -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 =