summaryrefslogtreecommitdiffstats
path: root/DOCS/man/options.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-08-27 11:34:10 +0200
committerwm4 <wm4@nowhere>2020-08-27 11:55:20 +0200
commit7fb972fd3997bfa389caa7c1eb899ea4b8444083 (patch)
treeb8cbbbcd6777f041bd7dc471c0a394cf843c5156 /DOCS/man/options.rst
parentb5b83a1ed5236346754b75d1fb376dc5c683b7bd (diff)
downloadmpv-7fb972fd3997bfa389caa7c1eb899ea4b8444083.tar.bz2
mpv-7fb972fd3997bfa389caa7c1eb899ea4b8444083.tar.xz
vo_gpu: EGL: fix transparency on X11/EGL/Mesa
Transparent windows on X11/EGL/native Mesa GL didn't work for various reasons. From what I remember, the current code did work with nvidia at least. Mesa has made attempts to fix this, but they never really made it in. But it turns out you can make EGL/Mesa list the EGLConfigs that use X11 RGBA visuals, and context_x11egl.c contains code that explicitly selects them if alpha is requested (see pick_xrgba_config()). The reason EGL/Mesa did not list them (and thus breaking transparency) is because we requested a EGL_ALPHA_SIZE != 0 if alpha is requested. But the transparent EGLConfigs use EGL_ALPHA_SIZE == 0. That's because EGL doesn't actually support the concept of transparent windows; the alpha size parameter is something else (memory rendering without FBOs or something, I don't care enough to look up the real reasons). This still won't work on Wayland. Every EGL backend needs platform specific code. (Good job, EGL, such an awesome platform independent standard.) Fixes: #6590
Diffstat (limited to 'DOCS/man/options.rst')
-rw-r--r--DOCS/man/options.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 30ea5d7ce1..a8e815b61c 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -6319,7 +6319,8 @@ The following video options are currently all specific to ``--vo=gpu`` and
unavailable, it silently falls back on a normal framebuffer. Note that
if you set the ``--fbo-format`` option to a non-default value, a
format with alpha must be specified, or this won't work.
- This does not work on X11 with EGL and Mesa (freedesktop bug 67676).
+ Whether this really works depends on the windowing system and desktop
+ environment.
no
Ignore alpha component.