diff options
author | Dudemanguy <random342@airmail.cc> | 2021-06-27 10:43:13 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-06-27 10:58:59 -0500 |
commit | a02901cae77c86fb9de997a418296d1fc0e3eada (patch) | |
tree | 372bc58c179be34c744851e3bff71afbc8edaeb8 /video/out/vulkan | |
parent | 76bddaccd63ee60245881dc188d3e15356f093f1 (diff) | |
download | mpv-a02901cae77c86fb9de997a418296d1fc0e3eada.tar.bz2 mpv-a02901cae77c86fb9de997a418296d1fc0e3eada.tar.xz |
wayland: fix wl_surface_set_buffer_scale usage
The wl_surface lives for the entire lifetime of the vo. It's only
neccesary to set the scale initially and when the output scaling changes
(the surface moves to a different output with a different scale or the
output itself changes it scale). All of the calls that were being made
in the egl/vulkan resize functions are not needed. vo_wlshm wasn't
correctly rescaling itself before this commit since it had no logic to
handle scale changes. This should all be shared, common code in the
surface/output listeners.
Diffstat (limited to 'video/out/vulkan')
-rw-r--r-- | video/out/vulkan/context_wayland.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/vulkan/context_wayland.c b/video/out/vulkan/context_wayland.c index 6097fa5a19..d2e6309776 100644 --- a/video/out/vulkan/context_wayland.c +++ b/video/out/vulkan/context_wayland.c @@ -124,7 +124,6 @@ static bool resize(struct ra_ctx *ctx) const int32_t height = wl->scaling * mp_rect_h(wl->geometry); vo_wayland_set_opaque_region(wl, ctx->opts.want_alpha); - wl_surface_set_buffer_scale(wl->surface, wl->scaling); return ra_vk_ctx_resize(ctx, width, height); } |