summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/egl_helpers.c
diff options
context:
space:
mode:
authorOlivier Perret <Olivier.Perret@mailbox.org>2022-04-02 12:21:45 +0200
committerDudemanguy <random342@airmail.cc>2022-04-07 16:56:36 +0000
commit86dfdf083bf4f5b4bb074e850e85a3b133210d38 (patch)
treee6ec7e47a8e8bb9a8c8559cd5ca4ed76f702e202 /video/out/opengl/egl_helpers.c
parent493066778475f24ea00c2e6e2793c5fa6344286c (diff)
downloadmpv-86dfdf083bf4f5b4bb074e850e85a3b133210d38.tar.bz2
mpv-86dfdf083bf4f5b4bb074e850e85a3b133210d38.tar.xz
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
Diffstat (limited to 'video/out/opengl/egl_helpers.c')
-rw-r--r--video/out/opengl/egl_helpers.c2
1 files changed, 1 insertions, 1 deletions
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
};