diff options
author | dudemanguy <random342@airmail.cc> | 2019-10-14 12:16:42 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2019-10-20 15:34:57 +0000 |
commit | 027ca4fb855f3dff4cba1c907c92c509b82e6fe8 (patch) | |
tree | 7dc4946579de357aa5fe14f1ec46e735905db33a /video/out/opengl | |
parent | bedca07a021863d264e7c4c471cc30102899500f (diff) | |
download | mpv-027ca4fb855f3dff4cba1c907c92c509b82e6fe8.tar.bz2 mpv-027ca4fb855f3dff4cba1c907c92c509b82e6fe8.tar.xz |
wayland: add various render-related options
The newest wayland changes have some new logic that make sense to expose
to users as configurable options.
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/context_wayland.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/context_wayland.c b/video/out/opengl/context_wayland.c index 5e9150eb0d..917db8553c 100644 --- a/video/out/opengl/context_wayland.c +++ b/video/out/opengl/context_wayland.c @@ -139,7 +139,8 @@ static void wayland_egl_swap_buffers(struct ra_ctx *ctx) } eglSwapBuffers(p->egl_display, p->egl_surface); - vo_wayland_wait_frame(wl); + if (!wl->opts->disable_vsync) + vo_wayland_wait_frame(wl, wl->opts->frame_offset); if (wl->presentation) wayland_sync_swap(wl); |