diff options
author | Dudemanguy <random342@airmail.cc> | 2022-06-07 14:08:16 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2022-06-10 13:55:22 +0000 |
commit | 661b5542de21d46d4d7c4693e564f4eec0526812 (patch) | |
tree | 6266c1e70edb6b0208a85443c4f128822a454b85 /player/osd.c | |
parent | aab9ab97f0340fbb042b71fce100f334098e255f (diff) | |
download | mpv-661b5542de21d46d4d7c4693e564f4eec0526812.tar.bz2 mpv-661b5542de21d46d4d7c4693e564f4eec0526812.tar.xz |
wayland_gl: wait until resize to create egl_window
Some wayland compositors (i.e. weston) get extremely picky about
committed buffer sizes not matching the configured state. In particular,
weston throws an error on you if you attempt to launch with
--window-maximized and use opengl (vo_vaapi_wayland actually errors as
well in this case, but that's a different issue). The culprit here is
actually wl_egl_window_create. This creates an initial buffer at the
sizes passed in the arguments which is what weston doesn't like.
Instead, move the egl_window creation call to the resize function. This
ensures that mpv is using the size obtained via the toplevel event, and
it should always be the buffer size we want.
Diffstat (limited to 'player/osd.c')
0 files changed, 0 insertions, 0 deletions