From 86dfdf083bf4f5b4bb074e850e85a3b133210d38 Mon Sep 17 00:00:00 2001 From: Olivier Perret Date: Sat, 2 Apr 2022 12:21:45 +0200 Subject: [PATCH] egl_helpers: request at least 8 alpha bits if necessary Previously on wayland, it would result in an egl config with only 2 alpha bits, which technically matches what was requested, but is not very useful. Fixes #9862 --- video/out/opengl/egl_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/opengl/egl_helpers.c b/video/out/opengl/egl_helpers.c index b3e11c6f43..3bf6239e41 100644 --- a/video/out/opengl/egl_helpers.c +++ b/video/out/opengl/egl_helpers.c @@ -132,7 +132,7 @@ static bool create_context(struct ra_ctx *ctx, EGLDisplay display, EGL_RED_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_BLUE_SIZE, 8, - EGL_ALPHA_SIZE, ctx->opts.want_alpha ? 1 : 0, + EGL_ALPHA_SIZE, ctx->opts.want_alpha ? 8 : 0, EGL_RENDERABLE_TYPE, rend, EGL_NONE };